php - How can I shorten URL extentions to make them more friendly -
we have links showing this,
turkish-property-world.com/turkey_villas.php?bid=4&page=1 would show,
turkish-property-world.com/turkey_villas in .htaccess include rule nothing changes.
rewriteengine on rewritecond %{http_host} !^www.example.com$ [nc] rewriterule ^(.*)$ http://www.example.com/$1 [l,r=301] any help?
you can use following;
rewritecond %{request_filename} !-f rewritecond %{request_filename} !-d rewriterule ^([^/]+)/([^/]+)/([^/]+)$ $1.php?bid=$2&page=$3 [l] by doing this,
turkish-property-world.com/turkey_villas.php?bid=4&page=1 will be
turkish-property-world.com/turkey_villas/4/1 you need kep other parameters too
update: above rule work not turkey_villas, work other *.php names
Comments
Post a Comment