homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Visit PubCon.com
Home / Forums Index / Code, Content, and Presentation / Apache Web Server
Forum Library, Charter, Moderators: Ocean10000 & incrediBILL & phranque

Apache Web Server Forum

Endless loop after redirecting one file
Need some help please

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

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)

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)

Thank you very much!

It worked fine.

Global Options:
 top home search open messages active posts  

Home / Forums Index / Code, Content, and Presentation / Apache Web Server
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved