Hi All,
i am desperatly looking for some help with mod rewrites,
i have set up my site to show "tidy urls" which are virtual urls they dont exist, i want to now redirect these urls to the actual url which is validif that makes sence?
i have a db of 100,000 plus products all using one page to send data in the url to pullout the specific data to show
so i have a real page like so
now i have set it up so when the user clicks on this products link it goes toCode:http://www.my-website.com/results.php?category=dvd&product=The Hurt Locker
which does not existCode:http://www.my-website.com/dvd/the_hurt_locker
now as i understand it i have to ue mod rewrite to point the second url to the first? is that right?
so i have found this piece of code which i have tried to modify
but i dont really unertand how it all works and am really struggling to get anywhere with thisCode:RewriteEngine On RewriteCond %{SCRIPT_FILENAME} !-d RewriteCond %{SCRIPT_FILENAME} !-f RewriteRule ^users/(\d+)*$ ./profile.php?id=$1 RewriteRule ^threads/(\d+)*$ ./results.php?id=$1 RewriteRule ^search/(.*)$ ./search.php?query=$1
any help is apprecated
p.s the categorys in the urls are not always dvd![]()


if that makes sence?
Reply With Quote
Bookmarks