Adam Bloch Member Sep 12, 2022 #1 This is as simple as it sounds. For years we have had a little HTML file that redirects everyone from the root to the folder the xenforo installation is in. Surly we should be doing this in the .htaccess and if so how ??
This is as simple as it sounds. For years we have had a little HTML file that redirects everyone from the root to the folder the xenforo installation is in. Surly we should be doing this in the .htaccess and if so how ??
Muddy Boots Well-known member Sep 12, 2022 #2 Something like this in the root .htaccess (not tested) Code: # Permanent URL redirect Redirect 301 / /xenforoinstallation Repack xenforoinstallation with your foldername Upvote 0 Downvote
Something like this in the root .htaccess (not tested) Code: # Permanent URL redirect Redirect 301 / /xenforoinstallation Repack xenforoinstallation with your foldername
Adam Bloch Member Sep 12, 2022 #3 would this work better? The sub folder is called xf. Might be better for SEO? RewriteCond %{ENV:REDIRECT_STATUS} ^$ RewriteRule ^xf/(.*)$ /$1 [L,R=301] RewriteCond %{REQUEST_URI} !^/xf [NC] RewriteRule ^(.*)$ /xf/$1 [L] Upvote 0 Downvote
would this work better? The sub folder is called xf. Might be better for SEO? RewriteCond %{ENV:REDIRECT_STATUS} ^$ RewriteRule ^xf/(.*)$ /$1 [L,R=301] RewriteCond %{REQUEST_URI} !^/xf [NC] RewriteRule ^(.*)$ /xf/$1 [L]
Adam Bloch Member Sep 12, 2022 #4 Ok that fixed everything other than http to https. So I just need to add that to it and I'll be down to one redirect Upvote 0 Downvote
Ok that fixed everything other than http to https. So I just need to add that to it and I'll be down to one redirect
Adam Bloch Member Sep 13, 2022 #5 Ok that didn.t fix everything anyone else got any ideas? Upvote 0 Downvote
P Paul B XenForo moderator Staff member Sep 13, 2022 #6 Is there anything at the root? If not, why not install XF there? Upvote 0 Downvote
D djbaxter in memoriam 1947-2022 Sep 13, 2022 #7 Brogan said: Is there anything at the root? If not, why not install XF there? Click to expand... I was just going to post the same thing. Transfer all XF files and folders to the root. Get rid of the HTML redirect and any .htaccess redirects. Change the canonical settings in Basic Options. Upvote 0 Downvote
Brogan said: Is there anything at the root? If not, why not install XF there? Click to expand... I was just going to post the same thing. Transfer all XF files and folders to the root. Get rid of the HTML redirect and any .htaccess redirects. Change the canonical settings in Basic Options.
Mr Lucky Well-known member Sep 13, 2022 #8 djbaxter said: I was just going to post the same thing. Transfer all XF files and folders to the root. Get rid of the HTML redirect and any .htaccess redirects. Change the canonical settings in Basic Options. Click to expand... Good idea IMO, but you'd probably be best off with a redirect to the root from the old folder installation. Upvote 0 Downvote
djbaxter said: I was just going to post the same thing. Transfer all XF files and folders to the root. Get rid of the HTML redirect and any .htaccess redirects. Change the canonical settings in Basic Options. Click to expand... Good idea IMO, but you'd probably be best off with a redirect to the root from the old folder installation.
Adam Bloch Member Sep 14, 2022 #9 I'm not sure from a SEO point of view Google will like this... I have 1.7million pages listed with them... All I need to do it stop the endless redirects... Upvote 0 Downvote
I'm not sure from a SEO point of view Google will like this... I have 1.7million pages listed with them... All I need to do it stop the endless redirects...