Advertisement:

Author Topic: Redirect loop error  (Read 845 times)

Helpto

  • Newbie
  • *
  • Posts: 45
Redirect loop error
« on: November 29, 2014, 08:24:49 pm »
Hello Friends,

My website is not working because of a redirect loop.I was trying to update the .htaccess file for adding the following redirect.
Redirect 301 /index.php http://www.helptobuynsell.in.

But after updating, the website was not loading and showed a message like "This webpage has a redirect loop". I've re-uploaded the backup .htaccess file (No changes made). But still the website home page (www.helptobuynsell.in) is showing the above message.
The only page loading is http://www.helptobuynsell.in/index.php, all other pages returning a 404.The admin panel is also working fine.

I've used the below code in the .htaccess file

Code: [Select]
RewriteEngine on
RewriteCond %{HTTP_HOST} ^([a-z.]+)?helptobuynsell\.in$ [NC]
RewriteCond %{HTTP_HOST} !^www\. [NC]
RewriteRule .? http://www.%1helptobuynsell.in%{REQUEST_URI} [R=301,L]

I've not added a 302 redirect anywhere. But it is showing like a 302 Temporarily Redirect exists from http://www.helptobuynsell.in/ to http://www.helptobuynsell.in/.

I've tried different .htaccess code including the code from below link
https://code.google.com/p/osclass/source/browse/.htaccess?name=v1.1

But still I could not resolve the issue.

Any help on this problem would be greatly appreciated!

Regards