I need to match all urls that DO have mydomain.com in them AND DO NOT contain either /admin/ or ?page=
i tried the following:
RedirectRule (mydomain.com)(^(?!.*(/admin|\?page=))) http://www.mydomain.com?page=666
the negative part works well:
RedirectRule ^(?!.*(/admin|\?page=)) http://www.mydomain.com?page=666
but mydomain is an alias of some other domain and i want the redirect only for the alias (mydomain.com)
I’m using this as a redirect rule in an iirf.ini file (supports htaccess syntax).
thanx in advance and have a nice day 🙂
Try the following .htaccess rules