We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Site Times Out Without WWW.

Development and Programming

jorlee90's avatar
jorlee90
7 posts
16 years ago
jorlee90's avatar jorlee90

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:

– LG .htaccess Generator Start –

.htaccess generated by LG .htaccess Generator v1.0.0

http://leevigraham.com/cms-customisation/expressionengine/addon/lg-htaccess-generator/

secure .htaccess file

<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}]

Dont list files in index pages

IndexIgnore *

EE 404 page for missing pages

ErrorDocument 404 /index.php?/

Simple 404 for missing files

<FilesMatch “(.jpe?g|gif|png|bmp)$”> ErrorDocument 404 “File Not Found” </FilesMatch>

RewriteEngine On

RewriteBase /

remove the www

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

Add a trailing slash to paths without an extension

RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_URI} !(.[a-zA-Z0-9]{1,5}|/)$ RewriteRule ^(.*)$ $1/ [L,R=301]

Remove index.php

Uses the “include method”

http://expressionengine.com/wiki/Remove_index.php_From_URLs/#Include_List_Method

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]

Remove IE image toolbar

<FilesMatch “.(html|htm|php)$”> Header set imagetoolbar “no” </FilesMatch>

– LG .htaccess Generator End –

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.