Forum Moderators: phranque
Here is a sample link:
/mls/city.php?realtor=Kuna&state=Idaho
I want the bots and users to see as: /realtor/Idaho/Kuna.htm
So basically: /realtor/state/city.htm
One more thing... When I link to this page would i link to it as:
/mls/city.php?realtor=Kuna&state=Idaho
or
/realtor/Idaho/Kuna.htm
Can someone please tell me the htaccess script for this... I really appreciate your help!
Welcome to WebmasterWorld!
Here are the steps you need to take:
mod_rewrite works at the front end of Apache request processing, after a request is received and before any content is served or any scripts are run. Therefore, it can change only incoming URLs, and cannot change the URLs output on your pages as links. So, the above procedure is what you need to do to make it work.
There are plenty of threads about this method here in the forum, including several recent ones. See also our charter for references to documentation.
I hope this helps get you started,
Jim
Jim
RewriteRule ^mls/([^-]+)-([^.]+)\.htm$ /mls/city.php?state=$1&realtor=$2 [L]
Jim
Options +FollowSymLinks
RewriteEngine on
RewriteRule ^mamahoohoo\.htm$ /mls/city.php?state=Idaho&realtor=Kuna [L]
If that doesn't work, then it's likely you can't use mod_rewrite on that server without a config change.
On many hosting accounts, the error logs are saved in the same subdirectory as your stats, so try looking in there via FTP.
Jim