Answer the question
In order to leave comments, you need to log in
How to make a redirect with BasicAuth?
How to use local .htaccess to set up a redirect for a specific file that requires basic authorization? That is, let's say there is a test.php
file on a third-party server dev.test.com that requires a header with Authorization: Basic . And there is a local site that connects this file but takes it from a remote server and not locally. redirect do this
RewriteCond %{REQUEST_URI} ^/test.php$
RewriteRule (.*) https://dev.test.com/test.php [R=302,L,NE]
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question