mauzao9
Well-known member
Hello,
So I use Xenforo default htaccess on the main domain but I want to do a test subdomain to run a private install of xF, but every I try, it does redirect the sub.domain.com/url to domain.com/url, I searched a to fix it and instead caused a refresh loop.
What do I change to have it cope with a sub-domain?
So I use Xenforo default htaccess on the main domain but I want to do a test subdomain to run a private install of xF, but every I try, it does redirect the sub.domain.com/url to domain.com/url, I searched a to fix it and instead caused a refresh loop.
Code:
# Mod_security can interfere with uploading of content such as attachments. If you
# cannot attach files, remove the "#" from the lines below.
#<IfModule mod_security.c>
# SecFilterEngine Off
# SecFilterScanPOST Off
#</IfModule>
ErrorDocument 401 default
ErrorDocument 403 default
ErrorDocument 404 default
ErrorDocument 405 default
ErrorDocument 406 default
ErrorDocument 500 default
ErrorDocument 501 default
ErrorDocument 503 default
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{HTTP_HOST} !^domain.com$ [NC]
RewriteRule ^(.*)$ http://domain.com/$1 [R=301,L,QSA]
RewriteCond %{HTTPS} ^on$
RewriteRule ^(.*)$ http://domain.com/$1 [NC,L,R]
What do I change to have it cope with a sub-domain?