grantus Active member Jun 13, 2014 #1 What would be the redirect to put in my htaccess for my forum move? Right now my forum is in the root (public_html), and I'm moving it to the "forums" folder (public_html/forums). I want to make sure all threads are redirect properly. Thanks.
What would be the redirect to put in my htaccess for my forum move? Right now my forum is in the root (public_html), and I'm moving it to the "forums" folder (public_html/forums). I want to make sure all threads are redirect properly. Thanks.
E edan Member Jun 16, 2014 #2 Simple redirection should solve the problem, example: Code: RedirectMatch 301 /threads/(.*) /forums/threads/$1
Simple redirection should solve the problem, example: Code: RedirectMatch 301 /threads/(.*) /forums/threads/$1
Adam Howard Well-known member Jun 18, 2014 #4 edan said: Simple redirection should solve the problem, example: Code: RedirectMatch 301 /threads/(.*) /forums/threads/$1 Click to expand... I assume if you were going to move your forum out of /forums/ and into the root, you could simply reverse that. PHP: RedirectMatch 301 /forums/threads/(.*) /threads/$1
edan said: Simple redirection should solve the problem, example: Code: RedirectMatch 301 /threads/(.*) /forums/threads/$1 Click to expand... I assume if you were going to move your forum out of /forums/ and into the root, you could simply reverse that. PHP: RedirectMatch 301 /forums/threads/(.*) /threads/$1
P Paul B XenForo moderator Staff member Jun 18, 2014 #5 I should point out that redirect will only work for that route (/threads). For example, if you were moving from the /community directory to the root, you would use: Code: RewriteRule ^community/(.*)?$ /$1 [R=301,L]
I should point out that redirect will only work for that route (/threads). For example, if you were moving from the /community directory to the root, you would use: Code: RewriteRule ^community/(.*)?$ /$1 [R=301,L]
R rdn Well-known member May 15, 2015 #6 Brogan said: I should point out that redirect will only work for that route (/threads). For example, if you were moving from the /community directory to the root, you would use: Code: RewriteRule ^community/(.*)?$ /$1 [R=301,L] Click to expand... What if the forum installed on a folder /forums/ then moved to the root folder. RewriteRule ^forums/(.*)?$ /$1 [R=301,L] Click to expand... Not redirecting correctly forum nodes url's :/
Brogan said: I should point out that redirect will only work for that route (/threads). For example, if you were moving from the /community directory to the root, you would use: Code: RewriteRule ^community/(.*)?$ /$1 [R=301,L] Click to expand... What if the forum installed on a folder /forums/ then moved to the root folder. RewriteRule ^forums/(.*)?$ /$1 [R=301,L] Click to expand... Not redirecting correctly forum nodes url's :/