hello, I'm trying to get pages likehttp://www.rent-index.com/detailsCottages.php?postid=1493 to becomewww.rent-index.com/1493 or at least www.rent-index.com/vacations/1493I've tried reading this stuff onhttp://wiki.dreamhost.com/index.php/Mod_rewrite but i can't figure outhow to do this.Can you please help
My knowledge of mod_rewrite is pretty limited, but I think this will work:
RewriteRule ^vacations/([0-9-]+)/ /detailsCottages.php?postid=$1 [QSA]
Remember that mod_rewrite doesn't convert the old URL into the new URL. It does the opposite. If someone enters http://rent-index.com/vacations/1234/ it will be redirected to http://rent-index.com/detailsCottages.php?post=1234
Simon Jessey | Keystone WebsitesSave $97 on yearly plans with promo code [color=#CC0000][b]SCJESSEY97[/b][/color]
hello, but instead of redirecting it, is it possible to make such a url www.rent-index.com/1321 in php ?
oh ic, it redirects it but the url stays the same thats what i want. thanx a lot for your help