Free Web Hosting Forum
Go Back   Free Web Hosting Forum > Website Building > Web Programming
Reload this Page Website too many redirects.
Reply
 
Thread Tools Display Modes
(#1 (permalink))
Old
Junior Member
kcchai is on a distinguished road
 
Posts: 13
Join Date: Sep 2012
Exclamation Website too many redirects. - 09-13-2012, 03:53 AM

Can anyone show me how to modify my .htaccess file so I can redirect my non-www to www. Please take a look below. My site caught an error "Error 310 (net::ERR_TOO_MANY_REDIRECTS): There were too many redirects."

My .htaccess file

# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
RewriteCond %{HTTP_HOST} !^www.mydomain.com$
RewriteRule ^(.*)$ http://www.mydomain.com [R=301,L]
</IfModule>

# END WordPress



My Permalink settings

/%category%/%postname%/
Reply With Quote
Sponsored Links
(#2 (permalink))
Old
Senior Member
kencat7072 is on a distinguished road
 
Posts: 236
Join Date: Sep 2012
Default 09-13-2012, 04:01 AM

Read this before posting or your thread will be deleted! And Forum Rules, You need to read them. Do not post the same question in multiple threads. Redirect non-www to www < this is the same question. Just wait and someone that can help will.
Reply With Quote
(#3 (permalink))
Old
Junior Member
kcchai is on a distinguished road
 
Posts: 13
Join Date: Sep 2012
Default 09-13-2012, 04:02 AM

I posted into wrong category. I need customer service assistance. I will delete the old post . I apologize
Reply With Quote
(#4 (permalink))
Old
Senior Member
kencat7072 is on a distinguished road
 
Posts: 236
Join Date: Sep 2012
Default 09-13-2012, 04:04 AM

No need to apologize, I'm just trying to help you get an answer. Posting in several areas will only get all the post deleted and no help there.
What is your site URL? I might be able to help, If not it'll be a starting point for someone with more expertise.
Reply With Quote
(#5 (permalink))
Old
Junior Member
kcchai is on a distinguished road
 
Posts: 13
Join Date: Sep 2012
Default 09-13-2012, 04:20 AM

Thanks for your help.

Last edited by kcchai; 09-29-2012 at 02:37 AM.
Reply With Quote
(#6 (permalink))
Old
Senior Member
kencat7072 is on a distinguished road
 
Posts: 236
Join Date: Sep 2012
Default 09-13-2012, 04:27 AM

Have you checked if the WPML plugin is enabled? It needs to be disabled.
Reply With Quote
(#7 (permalink))
Old
Junior Member
kcchai is on a distinguished road
 
Posts: 13
Join Date: Sep 2012
Default 09-13-2012, 05:40 AM

Hie Ken,

How do you disable WPML plugin ? Please guide me.

Thank you
Reply With Quote
(#8 (permalink))
Old
Senior Member
kencat7072 is on a distinguished road
 
Posts: 236
Join Date: Sep 2012
Default 09-13-2012, 06:01 AM

Try this in your .htaccess
Code:
RewriteEngine On
RewriteCond %{HTTP_HOST}  ^example.com [nocase]
RewriteRule ^(.*)         http://www.example.com/$1 [last,redirect=301]
Reply With Quote
(#9 (permalink))
Old
Junior Member
kcchai is on a distinguished road
 
Posts: 13
Join Date: Sep 2012
Default 09-13-2012, 06:04 AM

Its not working Ken. Do you have other options?


# Do not remove this line, otherwise mod_rewrite rules will stop working
RewriteBase /


# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{HTTP_HOST} ^mydomain.com [nocase]
RewriteRule ^(.*) http://www.mydomain.com/$1 [last,redirect=301]
</IfModule>

# END WordPress

Last edited by kcchai; 10-29-2012 at 07:48 AM.
Reply With Quote
(#10 (permalink))
Old
Senior Member
kencat7072 is on a distinguished road
 
Posts: 236
Join Date: Sep 2012
Default 09-13-2012, 06:12 AM

What are you using to edit your .htaccess file? Note pad, word pad or some other editor?
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.5.2
vBulletin Skin developed by: vBStyles.com