My current url is like http://www.mysite.info/index.php?area=1&cityname=newyork i want it to be like http://www.mysite.info/index.php/area/1/city/newyork/ or http://www.mysite.info/city/newyork.html any help appriciated. thanks in advance. have tried several rewriting rules from other sites.
What happened when you tried rules from other sites Following rule is all you need to make it work - Provided .htaccess directives are working on your site! RewriteRule ^city /index.php?area=1&cityname=newyork Code (markup):
Options +FollowSymLinks RewriteEngine on RewriteRule index.php/(.*)/(.*)/(.*)/(.*)/$ /index.php?$1=$2&$3=$4 Code (markup): that rule will make ur urls like dis http://www.mysite.info/index.php/area/1/city/newyork/
I tried both but not working well. Even i have tried the server log. I did not find any error over there too. I think my host doesn't support htaccess. but as i use rule to change all .php to .html it works and no other rule is working. what do you guys thinks is going wrong with my host. recently my site's url is http://mysite.info/index.php?area=1 first rule i tried is: Options +FollowSymLinks RewriteEngine on RewriteRule index.php/(.*)/(.*)/$ /index.php?$1=$2 but there is no change second : RewriteRule ^city /index.php?area=1 i am not getting the second one. Any other help please?
RewriteEngine On RewriteBase / RewriteCond %{HTTP_HOST} !^fun.niranvv.com$ [NC] RewriteRule ^(.*)$ http://fun.niranvv.com/$1 [L,R=301] RewriteEngine On RewriteCond %{HTTP_HOST} ^forum.niranvv.com$ [NC] RewriteRule ^(.*)$ http://fun.niranvv.com/$1 [R=301,L]