How do I Redirect a URL in PHP using .htaccess? -
How do I redirect a URL to PHP? If I use .htaccess
to redirect, then this is asking for authentication (username and password). I want to redirect to a URL without any authentication. Is it possible in PHP? I do not want to redirect header or meta tag or window.location
Is there any other way possible?
My guess is that you probably copy / paste some code into .htaccess file with basic authentication?
You only need one line in .htaccess
301 / oldpath redirect http: // sitecom / newpath
Comments
Post a Comment