Forum Moderators: coopster
I am using a plugin in wordpress which redirects users who try to access [mysite.com...]
This line is take from the code:
if (strpos(strtolower($_SERVER['REQUEST_URI']),'/wp-admin/') !== false) {
The plugin works in that it redirects users who try to access [mysite.com...] but they can still access pages under that folder but putting the full url in the address bar ie:
[mysite.com...]
Does anyone know how I would edit the above line to prevent access to wp-admin and everything below it?
Thanks!