I am using LG’s .htaccess generator on my site which works great, however when I attempt to visit using just domain.com versus www.domain.com I get “Problem loading page. The connection has timed out”.
I am not sure if it directly relates to LG’s extension or not but here are my .htaccess rules for reference:
<Files .htaccess> order allow,deny deny from all </Files>
AddOutputFilter DEFLATE js xml php css RewriteEngine on RewriteRule .* - [E=HTTP_IF_MODIFIED_SINCE:%{HTTP:If-Modified-Since}] RewriteRule .* - [E=HTTP_IF_NONE_MATCH:%{HTTP:If-None-Match}]
IndexIgnore *
ErrorDocument 404 /index.php?/
<FilesMatch “(.jpe?g|gif|png|bmp)$”> ErrorDocument 404 “File Not Found” </FilesMatch>
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} ^(www.$) [NC] RewriteRule ^ http://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_URI} !(.[a-zA-Z0-9]{1,5}|/)$ RewriteRule ^(.*)$ $1/ [L,R=301]
RewriteCond %{REQUEST_URI} !(.[a-zA-Z0-9]{1,5})$ RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_URI} ^/(includes|search|products|home|resources|company||members|P[0-9]{2,8}) [NC] RewriteRule ^(.*)$ /index.php?/$1 [L]
<FilesMatch “.(html|htm|php)$”> Header set imagetoolbar “no” </FilesMatch>
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.