301 redirect - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21) +--- Thread: 301 redirect (/showthread.php?tid=12209) |
301 redirect - El Forum - 10-10-2008 [eluser]belbek[/eluser] 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 301 redirect - El Forum - 10-10-2008 [eluser]dijon[/eluser] you'd need to do this using Routing (/application/config/routes.php) eg; route['page.php'] = "page" see userguide:http://ellislab.com/codeigniter/user-guide/general/routing.html |