Welcome to WebmasterWorld Guest from

Forum Moderators: Ocean10000 & incrediBILL & phranque

Message Too Old, No Replies

Endless loop after redirecting one file

Need some help please



9:47 am on Oct 26, 2005 (gmt 0)

10+ Year Member

I had a working redirect:
RewriteEngine on
RewriteCond %{HTTP_HOST} ^site.com$
RewriteRule ^(.*)$ [site.com...] [R=301,L]
RedirectMatch permanent ^/$ [site.com...]

Now I needed to redirect one specific file. I added the following line to .htaccess:
RedirectPermanent /file.html [site.com...]

But whenever I add this line the whole site is not working anymore. Even the homepage gets in an endless loop and does not show up.

What went wrong?


11:16 am on Oct 26, 2005 (gmt 0)

10+ Year Member

try this:

Redirect /file.html [site.com...]
RewriteEngine On
RewriteCond %{http_HOST} ^site\.com
RewriteRule ^(.*) [site.com...] [L,R=301]


12:57 pm on Oct 28, 2005 (gmt 0)

10+ Year Member

Thank you very much!

It worked fine.


Featured Threads

Hot Threads This Week

Hot Threads This Month