Robru Well-known member Dec 30, 2016 #1 How to: Redirect from root to folder: Code: https://www.caviaforum.nl/threads/ to: https://www.caviaforum.nl/community/threads/ Thank you for your help
How to: Redirect from root to folder: Code: https://www.caviaforum.nl/threads/ to: https://www.caviaforum.nl/community/threads/ Thank you for your help
m1ne Well-known member Dec 30, 2016 #2 https://xenforo.com/community/threads/frequently-asked-questions.5183/#post-180455 #5 Upvote 0 Downvote
Robru Well-known member Dec 30, 2016 #3 I'am confused about this: Alternatively, if you move from the root to the /community directory, this would need to be added to an .htaccess file in the root: Code: RewriteEngine on RewriteCond %{REQUEST_URI} ^/$ RewriteRule (.*) /community/ [R=301] The root is my Wordpress installation And Xenforo is in the directory /community If I use the above rewrite rule All traffic through put to the directory /community Upvote 0 Downvote
I'am confused about this: Alternatively, if you move from the root to the /community directory, this would need to be added to an .htaccess file in the root: Code: RewriteEngine on RewriteCond %{REQUEST_URI} ^/$ RewriteRule (.*) /community/ [R=301] The root is my Wordpress installation And Xenforo is in the directory /community If I use the above rewrite rule All traffic through put to the directory /community
R rdn Well-known member Dec 30, 2016 #4 How about Nginx rewrite for the same redirect? I also want the same. Upvote 0 Downvote
Robru Well-known member Dec 30, 2016 #5 I think this rule is ok. Code: RewriteRule ^(threads|forums|members)/(.*)$ /community/$1/$2 [R=301,L] Upvote 0 Downvote
I think this rule is ok. Code: RewriteRule ^(threads|forums|members)/(.*)$ /community/$1/$2 [R=301,L]
R rdn Well-known member Jan 17, 2017 #6 Robru said: I think this rule is ok. Code: RewriteRule ^(threads|forums|members)/(.*)$ /community/$1/$2 [R=301,L] Click to expand... Doesn't work Sir. Upvote 0 Downvote
Robru said: I think this rule is ok. Code: RewriteRule ^(threads|forums|members)/(.*)$ /community/$1/$2 [R=301,L] Click to expand... Doesn't work Sir.
Robru Well-known member Jan 17, 2017 #7 RoldanLT said: Doesn't work Sir. Click to expand... This is for apache, I think Upvote 0 Downvote