I am trying to get the www version of my domain to be used, and only the www.
The site is http://www.john-irving.net/
Here is the code I usually use in my .htaccess on my static sites to force the WWW version...
Code:
Options +FollowSymLinks
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_URI} !^/robots\.txt$
RewriteCond %{HTTP_HOST} !^www\.domain\.com [NC]
RewriteRule ^(.*)$ http://www.domain.com/$1 [R=301,L]
This next bit is what is currently in my .htacces file for my blog. (The commented lines are what wordpress created.)
Code:
Options +FollowSymLinks
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_URI} !^/robots\.txt$
RewriteCond %{HTTP_HOST} !^www\.john-irving\.net [NC]
RewriteRule ^(.*)$ http://www.john-irving.net/$1 [R=301,L]
# RewriteEngine On
# RewriteBase /
# RewriteCond %{REQUEST_FILENAME} !-f
# RewriteCond %{REQUEST_FILENAME} !-d
# RewriteRule . /index.php [L]
If you visit my site you will see that it is somehow in an infinite loop moving from the www to non www versions.
Is there a problem with my .htaccess or is this an issue with hosting setup? How do you think I could fix this? Thanks, John
__________________
Cheers, John Irving: My Blog
JLI Media: Please login or register to view this content. Registration is FREE | Website Development (Link Coming Soon!)
|