Using the regex and the .htaccess
file, I want to redirect users to a certain URL.
I want to redirect:
http://www.example.com/*
but nothttp://www.example.com/CDadmin/*
I have tried the following:
http://www.example.com/CDadmin\/[*-^$CDadmin\/*]
But does not work when I test with regex101.
/CDadmin
a physical directory on the filesystem? This would seem to only require a very simple regex - in fact it might not even require much of a regex at all. Doing this redirect in Apache config (ie. .htaccess) will be much more efficient (and easier) than using PHP.