Fork me on GitHub
Current release is 2.1.6 (21 Nov 2014).

Users who have not yet upgraded to 2.1 should get security release 2.0.18.14 (1 Nov 2014). We will stop providing these security releases to 2.0 at the end of this year.

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.