Hi
ALL,
I need a php code using HTACCESS or by any other which will rewrite the URL like http://www.example.com/state1/city1/1236 to the format as http://www.example.com/index.php?state= ... y1&id=1236
Thanks ,
Basudeb
URL rewriting using PHP
Moderator: General Moderators
Re: URL rewriting using PHP
My requirement is very much similar to yours, i will update you when i get the solutions.
Hope you will also update me.
Does anybody familiar with the .htaccess to get these type of result?
Thanks
Hope you will also update me.
Does anybody familiar with the .htaccess to get these type of result?
Thanks
Re: URL rewriting using PHP
Go through this site:
This stuff is very useful.
http://roshanbh.com.np/2008/03/url-rewr ... ccess.html
Thanks
This stuff is very useful.
http://roshanbh.com.np/2008/03/url-rewr ... ccess.html
Thanks
Re: URL rewriting using PHP
just create a file in your root directory called .htaccess and put this in there
Code: Select all
RewriteEngine On
RewriteRule /state(.*)/city(.*)/(.*) index.php?state=$1&city=$2&id=$3