Forum Moderators: phranque
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?
Thanks,
TJ
I couldn't actually get this to work. The directory I don't want the redirect on is /phpmyadmin, so I tried this:-
RewriteEngine on
RewriteRule!^/phpmyadmin - [C]
RewriteRule (.*) http://www.example.com/$1 [R=301,L]
But it's still redirecting everything.
Any thoughts?
TJ