Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

301 Redirect old urls to new
Hrvoje_86
#1 Posted : Friday, October 21, 2011 1:09:15 PM(UTC)
Rank: Advanced Member
Groups: Registered

Joined: 1/28/2011(UTC)
Posts: 157
Location: Croatia
Hi,

I am in the process of migrating a web portal to kooboo
and i'm wondering what would be the best way
to redirect urls from the old cms url to the new urls in kooboo. (to keep seo rank)

For example:

old site url: www.domain.com/564645/some-article.aspx (google tries to reindex this url gets a 301 redirect to the url below)
new site url: www.domain.com/Article/some-article


I don't think url rewrite works for mvc apps so i guess i can't use that.

I think i have to do one of the folowing:

- write a http module to intercept requests then issue a redirect
- change some source file/s in kooboo that handles routes but im not sure which files to look at (suggestions?)

Any advice or other suggestions are appreciated :)
jifeng
#2 Posted : Monday, October 24, 2011 2:52:11 AM(UTC)
Rank: Administration
Groups: Administrators, Registered

Joined: 9/3/2009(UTC)
Posts: 1,555
Location: Xiamen China
HI

The kooboo cms 3.0 have deep consider about this problem. There have a "Url redirects" function to deal with this case. Please go to the menu "System\Url redirects", add the record like:

Input Url: 564645/some-article.aspx (The old url)

Output Url: Articles (The target url)

Redirect Type: 301 (302)

After that, the request "http://localhost/564645/some-article.aspx" will be redirect to "http://localhost/Articles".

Furthermore, you can also use the regular pattern expression.

BTW, if you do not have a expect result, please edit the file of "routes.config", remove these lines and restart the site.

<add name="aspx" url="{*allaspx}">
<constraints allaspx =".*\.(aspx)(/.*)?" />
</add>



Regards,

Jifeng Huang

Kooboo Team

Microsoft ASP.NET MVP
1 user thanked jifeng for this useful post.
Hrvoje_86 on 10/24/2011(UTC)
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Powered by YAF 1.9.5.5 | YAF © 2003-2011, Yet Another Forum.NET
This page was generated in 0.047 seconds.