Redirect all except one file

Topics: Developer Forum, Project Management Forum, User Forum
Nov 29, 2011 at 1:02 PM

New domain name.

Redirect all incoming traffic that is not already the new domain name to new domain name.

Except one specific file.

redirect to

but does not get redirected.



Dec 6, 2011 at 8:18 PM
Edited Dec 6, 2011 at 8:19 PM

What have you tried?

A rule like the following "does nothing" for all URLs.

RewriteRule .* -  [L]

If you include a single rule to rewrite or redirect your one special URL first, then follow it with that line, it should do what you want.

But of course if you have just one rule intended to select one URL, you don't need the "do nothing" rule at all.  Check the examples and do some testing.