Forum Moderators: phranque
BTW, that will default to a 302 (Temporary) without [R=301,L] where you have the [L]
^(.*)$
Providing the destination URL is on the current host, which seems to be implied, then this will result in an internal rewrite, not a redirect at all
Nope, it's always a redirect ... I didn't study Apache docs; I just experimented on my test site.
If an absolute URL is specified, mod_rewrite checks to see whether the hostname matches the current host. If it does, the scheme and hostname are stripped out and the resulting path is treated as a URL-path. Otherwise, an external redirect is performed for the given URL. To force an external redirect back to the current host, see the [R] flag below.
Remember: An unconditional external redirect to your own server will not work with the prefixbecause of this feature. To achieve such a self-redirect, you have to use the R-flaghttp://thishost
What I really want to do is have every request for each one of four pages go to a different page based on if the visitor is coming from one of 5 different IP's.