• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Redirecting non-www to www

Jeffin

Well-known member
#2
this is how it is in my .htaccess but it still doesn't work:

# 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>

<IfModule mod_rewrite.c>
RewriteEngine On

# If you are having problems with the rewrite rules, remove the "#" from the
# line that begins "RewriteBase" below. You will also have to change the path
# of the rewrite to reflect the path to your XenForo installation.
#RewriteBase /xenforo

RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.*$ - [NC,L]
RewriteRule ^(data|js|styles|install) - [NC,L]
RewriteRule ^.*$ index.php [NC,L]
</IfModule>

RewriteCond %{HTTP_HOST} ^christianforumsite.com [NC]
RewriteRule ^(.*)$ http://www.christianforumsite.com/$1 [L,R=301]