Answer the question
In order to leave comments, you need to log in
Is RewriteBase even necessary?
Friends, realizing that banality - I dare to ask for help.
I spent half a day "playing" with this htaccess. As a result, it only worked when I deleted this Rewritebase ...
I beg you, not with documentation, but with a real answer to help ... A lot of time is spent transferring the site to hosting - it should not be like
this locales:
Options -MultiViews
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php?url=$1 [QSA,L]
AuthType Basic
AuthName "Thats protected Area!"
AuthUserFile C:\xampp\htdocs\mysiteru\public\admin\.htpasswd
Require valid-user
Options -MultiViews
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.+)$ index.php?url=$1 [QSA,L]
Options -MultiViews
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php?url=$1 [QSA,L]
AuthType Basic
AuthName ' Admin'
AuthUserFile /home/u171101/mysiteru/www/admin/.htpasswd
Require valid-user
Options -MultiViews
RewriteEngine On
RewriteBase /admin/
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ /admin/index.php?url=$1 [QSA,L]
Answer the question
In order to leave comments, you need to log in
needed and very much so.
Example if /
without directive $1
= /var/www/site/web/четотам
with directive $1
= /
Wash profit is obvious
now by
AuthUserFile /home/u171101/mysiteru/www/admin/.htpasswd
OpenServer and use the Linux path.
If it's just so impatient, then create such a folder in the structure, and make it a link.
You will be happy
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question