Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Apache: Users

Infinite loop of redirects

 

 

Apache users RSS feed   Index | Next | Previous | View Threaded


emil at knmedical

May 6, 2008, 2:18 AM

Post #1 of 1 (43 views)
Permalink
Infinite loop of redirects

Hi!

I'm trying to change my url:s from site.com/index.php?foo=bar to
site.com/bar. I both have a rewriterule with a 301 redirect so google,
etc. won't lose my old links. And an (I think it's called) internal
rewriterule that sends my site.com/bar url:s to the php script. The
problem is when I apply both rules they end up in an infinite loop. I've
tried looking at the logs, but they don't tell me much more then that
redirect and the internal rule are executed over and over. I guess I
should use a rewritecond to stop this, but I can't figure out how.

I've tried:
RewriteCond %{REQUEST_FILENAME} !-f on one of the calls
and RewriteCond %{REQUEST_FILENAME} -f
checking for "foo=" in the query string, etc. etc.

Nothing seems to help. How do I tell apache to stop when it's applied
one of the conditions and not keep doing first one then the other in a
loop?

Thanks for your time!

--

Regards Emil



---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe[at]httpd.apache.org
" from the digest: users-digest-unsubscribe[at]httpd.apache.org
For additional commands, e-mail: users-help[at]httpd.apache.org

Apache users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.