Invision Community 4: SEO, prepare for v5 and dormant account notifications By Matt Monday at 02:04 PM
cane_cc72 Posted February 6, 2016 Posted February 6, 2016 My domain is apparently setup to not use www in the url so I was trying to use force www in htaccess my problem is using both I keep getting error ERR_TOO_MANY_REDIRECTS my htaccess looks like for mod_write for friendly url's <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule> with 1st attempt at adding force www of course i changed example.com to my boards url <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] # Always use www in the domain # Replace 'example.com' with your domain name RewriteEngine on RewriteCond %{HTTP_HOST} ^([a-z.]+)?example\.com$ [NC] RewriteCond %{HTTP_HOST} !^www\. [NC] RewriteRule .? http://www.%1example.com%{REQUEST_URI} [R=301,L] </IfModule> 2nd attempt <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] RewriteCond "%{HTTP_HOST}" "!^www\." [NC] RewriteCond "%{HTTP_HOST}" "(.*)" RewriteRule "(.*)" "http://www.%1$1" [R=301,L] </IfModule> both produced the same error ERR_TOO_MANY_REDIRECTS
Kevin 7 Posted February 6, 2016 Posted February 6, 2016 What's up @cane_cc72, Revert your htaccess file back to default. Visit your hosting provider (wherever your domain is hosted). Edit your DNS Zone Editor to configure 'www' OR simply apple a 301 redirect from 'domain.com' to 'www.domain.com' Cheers
Kevin 7 Posted February 6, 2016 Posted February 6, 2016 12 minutes ago, cane_cc72 said: Thank You. No problem. If I was any help, feel free to "like" my post If I can be of any additional help in the future, save my email
Recommended Posts
Archived
This topic is now archived and is closed to further replies.