Reputation: 21
I'm trying to redirect everything on a website but 1 Joomla URL (and URLS containing this keyword). Example:
Should redirect everything from www.mydomain.com to www.mynewdomain.com but this:
www.mydomain.com/home/index.php/quality/*
I tried something like this:
RedirectMatch 302 /home/index.php/(?!quality) http://www.mynewdomain.com
But It won't redirect / or /home. Also, I tried the following but won't work:
RedirectMatch 302 (?!quality) http://www.mynewdomain.com
Is there a way to archive this?
Upvotes: 2
Views: 36
Reputation: 41219
Try :
RedirectMatch 302 ^/((?!home/index\.php/quality/.*).+)$ http://www.mynewdomain.com/$1
Upvotes: 1