Welcome Guest, Not a member yet? Register   Sign In
301 redirect

One of my old sites pade was indexed in google like http://www.site.com/page.php
now I need it to be indexed like http://www.site.com/page. How to make correct redirect
taking into account that I already have

RewriteEngine on
RewriteCond $1 !^(index\.php|mail\.php|images|robots\.txt|inrterface_img|catalog_img|css|js|img|files)
RewriteRule ^(.*)$ index.php/$1

in .htacess

you'd need to do this using Routing (/application/config/routes.php)


route['page.php'] = "page"

see userguide:http://ellislab.com/codeigniter/user-guide/general/routing.html

Theme © iAndrew 2016 - Forum software by © MyBB