Hi,
Thanks for the quick reply. I have something similar as to what is suggested in that thread.
Unfortuately, there seems to be a conflict between the .htaccess file in the root directory (mysite .com/) which contains the following:
RewriteEngine on
RewriteCond %{HTTP_HOST} ^mysite\.com
RewriteCond %{HTTPS} =on
RewriteRule .* https://www.%{SERVER_NAME}%{REQUEST_URI} [R,L]
RewriteCond %{HTTP_HOST} ^mysite\.com
RewriteCond %{HTTPS} !=on
RewriteRule .* http://www.%{SERVER_NAME}%{REQUEST_URI} [R,L]
RewriteCond %{THE_REQUEST} ^.*/index.html
RewriteRule ^(.*)index.html$ http://www.mysite .com/$1 [R=301,L]
- RewriteEngine on
- RewriteCond %{HTTP_HOST} ^mysite\.com
- RewriteCond %{HTTPS} =on
- RewriteRule .* https://www.%{SERVER_NAME}%{REQUEST_URI} [R,L]
- RewriteCond %{HTTP_HOST} ^mysite\.com
- RewriteCond %{HTTPS} !=on
- RewriteRule .* http://www.%{SERVER_NAME}%{REQUEST_URI} [R,L]
- RewriteCond %{THE_REQUEST} ^.*/index.html
- RewriteRule ^(.*)index.html$ http://www.mysite .com/$1 [R=301,L]
And the one in the forum subdirectory (mysite .com/forum/) which contains the following - required by an add on Im using:
Options +FollowSymlinks
RewriteEngine on
RewriteRule ^([a-z0-9_\-]*-(f|all)[0-9]+(p[0-9]+|/index[0-9]*)?\.html)$ forumdisplay.php/$1 [QSA,L]
RewriteRule ^([a-z0-9_\-]*-(t|p)[0-9]+(p[0-9]+|/index[0-9]*)?\.html)$ showthread.php/$1 [QSA,L]
RewriteCond %{REQUEST_URI} !(index\.php|\.css) [NC]
RewriteRule ^(archive|sitemap)/(.*)$ $1/index.php/$2 [QSA,L]
- Options +FollowSymlinks
- RewriteEngine on
- RewriteRule ^([a-z0-9_\-]*-(f|all)[0-9]+(p[0-9]+|/index[0-9]*)?\.html)$ forumdisplay.php/$1 [QSA,L]
- RewriteRule ^([a-z0-9_\-]*-(t|p)[0-9]+(p[0-9]+|/index[0-9]*)?\.html)$ showthread.php/$1 [QSA,L]
- RewriteCond %{REQUEST_URI} !(index\.php|\.css) [NC]
- RewriteRule ^(archive|sitemap)/(.*)$ $1/index.php/$2 [QSA,L]
Since when I remove the latter the force www.
does work!
Can anyone spot the problem?
Thanks!
