Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In with Facebook Sign In with Google Sign In with OpenID Sign In with Twitter

In this Discussion

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

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 Don't PM about development, I'm not currently taking on clients MVP
    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.

    Don't PM about development, I'm not currently taking on clients.

    grep is your friend.

    shozen1

Answers

Sign In or Register to comment.