Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 1 of 1
07-08-2013, 03:56 PM #1
- Join Date
- Jun 2010
- Thanked 8 Times in 8 Posts
SOLVED: How to rewrite all requests, with a single exception in .htaccess?
I would like to be able to rewrite all requests so that mypage.html is loaded, with the exception of requests for yourpage.html, which should not be rewritten.
I have gotten as far as this:
RewriteRule . mypage.html
RewriteRule ^yourpage\.html$ - [L]
RewriteRule .* mypage.html [L]
Last edited by XmisterIS; 07-08-2013 at 04:57 PM. Reason: Solved the problem.