htaccess(php)

hello,

i need help for htaccess file.

i need to redirect the page url dynamically. but my code not work yet.
i need redirect http://www.inspirexoxo.com/pages.php?id=14 to http://www.inspirexoxo.com/pages
below code…

 RewriteEngine On
	 RewriteCond %{QUERY_STRING} id=14 [NC]
             RewriteRule ^/pages\.php$ http://www.inspirexoxo.com/pages/?$ [L,R=301]

please help me as soon as posible

I have yet to get mod rewrite to work, but its something with godaddy (not using it because I want to, its because I have 2 :frowning: ).

With that said, make sure you hosting company supports it and that its enabled.

Sponsor our Newsletter | Privacy Policy | Terms of Service