Tuesday, November 4, 2014

Hi I am trying to get SEO friendlt url's

(4) PHP

Hi I am trying to get SEO friendlt url's for my application which has below urls formats. http://example.com/brands.php http://example.com/facebook.php?fb_page_id=7up+India http://example.com/twitter.php?twitter_screen_name= 7up+India I am trying to achieve as below urls http://example.com/brands http://example.com/facebook/7up+India http://example.com/twitter/7up+India So i wrote below htaccess rewrite rules in localhost xampp server where i am getting these urls as expected Options +FollowSymLinks RewriteEngine on RewriteBase / RewriteRule ^brands brands.php [NC,L] RewriteRule ^facebook/([0-9]+) facebook.php?fb_page_id=$1 [NC,L] RewriteRule ^twitter/([0-9a-zA-Z_]+) twitter.php?twitter_screen_name=$1 [NC,L] But when i hosted in remote server i am not getting second urls as expected. I am not getting GET parameter in respective pages at all

No comments:

Post a Comment

Search Box