Is there a reason you cannot redirect these URL's using .htaccess? Unless your server does not have support for this configuration file this would seem like the most effective means. You would just have to ensure that the proper files were located at that new location or you wouldn't be able to login to the backend.
Unless of course you are building something and need to redirect from within the code. Have you tired the wp_redirect() function in that case?
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.