переписывание работает нормально, пока мы не добавим auth в htaccess. Правильно ли форматируется файл? Зачем переписывать работу перед добавлением auth?apache basic auth breaks переписать в .htaccess
Запрос PARAMS на контроллер узла, без идентификации:
[id] => 433 [type] => city
Params после добавил аутентификации, и пользователь аутентифицирован:
[site/query]
Пример URL запроса, который работает без идентификации:
http://www.website.com/site/query?type=city&id=433
.htaccess с базовым значением auth внизу:
# any visits not coming from this official URL should be rerouted; AJAX cross-domain, www.website.com is not the same as our.company.com
RewriteEngine on
RewriteCond %{HTTP_HOST} !^www\.website\.com$ [NC]
RewriteRule ^(.*)$ http://www.website.com/$1 [R=301,L]
# route all requests that are NOT static files, through index.php to make the /nice/urls/ work
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?$1 [L]
# disable file listings for directories
Options -Indexes
# disable the fetching of .phtm
<Files ~ "\.phtml$">
Order allow,deny
Deny from all
</Files>
# Protect hidden files from being viewed
<Files .*>
Order Deny,Allow
Deny From All
</Files>
# Protect application and system files from being viewed
RewriteRule ^(?:modules|system)\b.* index.php/$0 [L]
# Allow any files or directories that exist to be displayed directly
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
AuthType Basic
AuthName "Password required"
AuthUserFile /maps/scorp/main/.htpasswd
Require valid-user
Есть ли недостающий RewriteRule перед инструкциями Auth? Есть 2 RewriteCond без RewriteRule после, в конце перед инструкциями auth? – Zimmi