Welcome Guest, Not a member yet? Register   Sign In
New Website: redirect old urls to new MVC system ?
#1

[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&sectionid=9&id=21&Itemid=55
to redirect to http://www.mysite.com/highlights

http://www.mysite.com/index.php?option=com_content&task=view&id=164&Itemid=55
to redirect to http://www.mysite.com/highlights/page/2009-05-05-my-news-title

http://www.mysite.com/index.php?option=com_facileforms&Itemid=76
to redirect to http://www.mysite.com/contact

...
#2

[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
redirect 301 /experience.html http://yourdomain.org/about/experience

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
#3

[eluser]yannyannyann[/eluser]
Ok thanks.

Why is it called redirect 301 ?

... I mean why not Redirect Rule ?
#4

[eluser]Dam1an[/eluser]
The 301 is the HTTP status code, it means that resource has permanently moved
see Wikipedia for more
#5

[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.
#6

[eluser]yannyannyann[/eluser]
Thanks very much guys.
#7

[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
#8

[eluser]Thorpe Obazee[/eluser]
I have absolutely no idea but when I tested in on my site, that didn't work.
#9

[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




Theme © iAndrew 2016 - Forum software by © MyBB