New Website: redirect old urls to new MVC system ? - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: New Website: redirect old urls to new MVC system ? (/showthread.php?tid=18420) |
New Website: redirect old urls to new MVC system ? - El Forum - 05-06-2009 [eluser]yannyannyann[/eluser] Hi, I am redesigning / developing a website. Because it has been online for a long time, and has good traffic, the URLs are probably stored by google and by users in their bookmarks. That's why I need to redirect those URLs to my new scheme. How could I do that ? Here are some examples: Code: http://www.mysite.com/index.php?option=com_content&task=category§ionid=9&id=21&Itemid=55 ... New Website: redirect old urls to new MVC system ? - El Forum - 05-06-2009 [eluser]Thorpe Obazee[/eluser] It seems that you need to manually 301 redirect the links Code: redirect 301 /projects.html http://yourdomain.org/about/projects something like the one above that I used on my site. This should be on the .htaccess file. Code: redirect 301 /index.php?option=com_facileforms&Itemid=76 http://www.mysite.com/contact New Website: redirect old urls to new MVC system ? - El Forum - 05-06-2009 [eluser]yannyannyann[/eluser] Ok thanks. Why is it called redirect 301 ? ... I mean why not Redirect Rule ? New Website: redirect old urls to new MVC system ? - El Forum - 05-06-2009 [eluser]Dam1an[/eluser] The 301 is the HTTP status code, it means that resource has permanently moved see Wikipedia for more New Website: redirect old urls to new MVC system ? - El Forum - 05-06-2009 [eluser]Thorpe Obazee[/eluser] [quote author="yannyannyann" date="1241615459"]Ok thanks. Why is it called redirect 301 ? ... I mean why not Redirect Rule ?[/quote] Well, I'm just used to saying redirect 301 to distinquish a permanent redirect. there's a 302 which is temporary. New Website: redirect old urls to new MVC system ? - El Forum - 05-06-2009 [eluser]yannyannyann[/eluser] Thanks very much guys. New Website: redirect old urls to new MVC system ? - El Forum - 05-06-2009 [eluser]yannyannyann[/eluser] Just a last thing though, Could I write this ? Code: redirect 301 /index.php?option=com_facileforms&Itemid=76 /contact instead of this : Code: redirect 301 /index.php?option=com_facileforms&Itemid=76 http://www.myfullurl.com/contact New Website: redirect old urls to new MVC system ? - El Forum - 05-06-2009 [eluser]Thorpe Obazee[/eluser] I have absolutely no idea but when I tested in on my site, that didn't work. New Website: redirect old urls to new MVC system ? - El Forum - 05-06-2009 [eluser]Dam1an[/eluser] I would assume you need the full URL, as this is often used when you change domain names, instead of redirecting within the same site |