Fork me on GitHub
Please upgrade to 2.1.x here. The 2.0 branch is no longer being updated.
Important security fix: 2.1.10, released 4 May.

moved forum to root from /forum/ how to 301 redirect?

shozen1shozen1 New
edited March 2012 in Vanilla 2.0 Help

I have moved my forum to root from /forum/ and I understand this may be extremely obvious and im almost there but how to do this exactly? I need to redirect all pages to the new location in root...

Currently I am using redirect 301 /forum/ http://www.kaohsiungliving.org/ in .htaccess and it almost works but misses out the forward flash / before /discussion folder. Example.

http://www.kaohsiungliving.orgdiscussion/715/question-what-would-you-think-of-a-counselling-service-for-ex-pats/p1?p=discussion/715/question-what-would-you-think-of-a-counselling-service-for-ex-pats/p1

As you can see "www.kaohsiungliving.orgdiscussion/" no "/" before discussion This is probably an extremely easy thing to do, and I have googled away but have only found partial success.

Please help :)

Tagged:

Best Answer

  • x00x00 MVP
    edited March 2012 Answer ✓

    I have a solution. Vanilla routes.

    First comment out the RedirectMatch in .htaccess

    then go to dashboard/routes -> Add Route

    Route Expression:

    forum(/.*)

    Target:

    $1

    Type:

    Permanent 301

    Done!

    Yes it is internal conflict of interest to answer your question.

    grep is your friend.

    shozen1

Answers

Sign In or Register to comment.