.htaccess - SEO friendly URL's: show friendly URL, load original address -
i using mod_rewrite
rule create seo friendly url's.
this mod_rewrite
rule:
rewriterule ^portfolio/portretten$ http://www.mydomain.nl/gallery.php?g=5 [l,nc]
it works fine, if type 'www.mydomain.nl/portfolio/portretten' loads www.mydomain.nl/gallery.php?g=5
. it's redirect, address bar of browser shows 'www.mydomain.nl/gallery.php?g=5', want show 'www.mydomain.nl/portfolio/portretten'.
so don't want redirect "replace". possible?
yes—you can either drop http://www.mydomain.nl part (in case it'll default doing internal redirect) or alternatively add p (proxy) flags.
actually, should work domain in there, apache must not realize current host. either that, or isn't current host, in case you'll have use proxy.
the mod_rewrite documentation goes on flags.
Comments
Post a Comment