Welcome to WebmasterWorld Guest from 22.214.171.124
So I have example.com resolving to it's IP, and I need to redirect any web requests to the www box.
So far, easy.
Problem is that I need to access phpmyadmin on this box from time to time, so I do need access to example.com/phpmyadmin
Is there any way I can do a conditional 301?
So if the requested URL isn't /phpmyadminXYZ then 301 to www.example. com?
I couldn't actually get this to work. The directory I don't want the redirect on is /phpmyadmin, so I tried this:-
RewriteRule!^/phpmyadmin - [C]
RewriteRule (.*) http://www.example.com/$1 [R=301,L]
But it's still redirecting everything.