Forum Moderators: phranque
I have tested that mod_rewrite is working with a simple script:
RewriteEngine on
RewriteRule ^alice.html$ bob.html
This works fine, but I want to generate SEO friendly links from my database driven page. I have the classic master/detail page set:
locationa <Link to locationdetail.php?id=1>
locationb <Link to locationdetail.php?id=2>
locationc <Link to locationdetail.php?id=3>
When the user clicks on the link (e.g. locationb), they are taken to the details page with the relevent id (e.g. www.mysite.com/locationdetail.php?id=2)
However, I want this to show up as www.mysite.com/locationb.php
I have tried a number of scripts from different sites on the web, but haven't had any success. Could anyone please help me?
Thanks in Advance guys!
Jim