1 htaccess to rule them all (www to non-www)

Strips the CSS.. so now you need to examine your apache vhost setup and see if there is anything in there that may be interfering with it.

That code should redirect it correctly with no problems.

When I was using OLS, this worked fine for it (and would have under Apache also - but the other above did to). This was before I went to SSL on the sites.
Code:
RewriteCond %{HTTP_HOST} ^www.servinglinux.com$ [NC]
RewriteRule ^(.*)$ http://servinglinux.com/$1 [R=301,L]
 
Also check your cPanel setup and make sure nothing is funky in it. I thought you were using SSL so was going to check that and see if it made a difference and saw you are using a cpanel setup for apache.
I haven't played with cpanel and apache in ages so don't remember if there are any settings in there that could screw with it.

Screen Shot 2014-06-19 at 1.16.45 AM.webp
 
Also check your cPanel setup and make sure nothing is funky in it. I thought you were using SSL so was going to check that and see if it made a difference and saw you are using a cpanel setup for apache.
I haven't played with cpanel and apache in ages so don't remember if there are any settings in there that could screw with it.

View attachment 76147
No, not using SSL (yet)
 
Last edited:
From day one of using XenForo, from importing my old community into XenForo

http://www.sociallyUncensored.eu/forums

Has been the physical path.

But I've always ended up with the "double" forums in the rewrite as you have noticed

http://www.sociallyuncensored.eu/forums/forums/

So this is becoming a real pain trying to move it into ROOT

Because while the physical path becomes

http://sociallyuncensored.eu

That "ghost" /forum/ path from the rewrite remains so you end up with

http://sociallyuncensored.eu/forums/
 
From day one of using XenForo, from importing my old community into XenForo

http://www.sociallyUncensored.eu/forums

Has been the physical path.

But I've always ended up with the "double" forums in the rewrite as you have noticed

http://www.sociallyuncensored.eu/forums/forums/

So this is becoming a real pain trying to move it into ROOT

Because while the physical path becomes

http://sociallyuncensored.eu

That "ghost" /forum/ path from the rewrite remains so you end up with

http://sociallyuncensored.eu/forums/
Of course the problem about this is @Brogan rewrite rules become useless

PHP:
RewriteRule ^forums/(.*)?$ /$1 [R=301,L]

Adding this leaves you in a never ending loop, because now you can't reach that "ghost path".

Seems moving into ROOT is impossible :(
 
Top Bottom