Last active
August 29, 2015 14:24
-
-
Save samholguin/3555fc85fd00bc6f4a96 to your computer and use it in GitHub Desktop.
.htaccess Rules
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Negative lookahead based rule: | |
RewriteRule ^products/(?!certain-category).*$ http://shop.newurl.co.uk/ [NC,L,R=301] | |
(?!certain-category) is a negative lookahead that will fail the match if certain-category comes right after /products/ in URL. | |
RedirectMatch 301 /products(.*) http://shop.sunwise.co.uk/ | |
Redirect 301 /shop http://shop.sunwise.co.uk |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment