zooki
Active member
I am trying to force the use of http:// through my entire site, so that nobody can use www on the forum. This is important so that they can maintain their cookie when visiting another directory with another script... and have SSO
I tried a few approaches, different rewrite conditions, but none of them seem to be having any effect. Can someone please help me out here.
This is my .htaccess :
I tried a few approaches, different rewrite conditions, but none of them seem to be having any effect. Can someone please help me out here.
This is my .htaccess :
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 500 default
php_value file_uploads on
php_value upload_max_filesize 35971520
php_value post_max_size 35971520
php_value max_input_time 1000
php_value memory_limit 64M
php_value max_execution_time 1000
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteBase /
# 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
# This line may be needed to enable WebDAV editing with PHP as a CGI.
#RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
RewriteCond %{HTTP_HOST} ^www\.website\.com$
RewriteRule ^(.*)$ http://website.com/$1 [R=301,L]
RewriteCond %{HTTP_HOST} ^www.website.com/community/$ [NC]
RewriteRule ^(.*)$ http://website.com/community/$1 [R=301,L]
RewriteRule ^forum/(.*)$ http://website.com/community/$1 [R=301,L]
RewriteRule ^(threads|forums|members|forum)/(.*)$ /community/$1/$2 [R=301,L]
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.*$ - [NC,L]
RewriteRule ^(data/|js/|styles/|install/|favicon\.ico|crossdomain\.xml|robots\.txt) - [NC,L]
RewriteRule ^.*$ index.php [NC,L]
</IfModule>