How do I redirect a URL in PHP? If I use .htaccess to redirect, then it's asking me for authentication (username & password). I want to redirect to a URL without any authentication.
Is it possible in PHP?
I don't want to use headers or meta tags or window.location to redirect. Is there
any other way is possible?
header()or htaccess andRedirect example.com example.com/page [R=301]