.+ /$0
удалить /
DirectorySlash Off
RewriteEngine On
RewriteCond %{DOCUMENT_ROOT}/$0.html -f
RewriteRule .+ $0.html [L]
DirectorySlash Off
RewriteEngine On
RewriteBase /
RewriteCond %{DOCUMENT_ROOT}/$0.html -f
RewriteRule .+ $0.html [L]
DirectorySlash Off
RewriteEngine On
RewriteCond %{DOCUMENT_ROOT}/$0.html -f
RewriteRule .+ /$0.html [L]
//TALKER=(?-s:(?!//{scene_end}).+\R)+\K\R+
[^"]*\K\)
ищет самую последнюю скобку[^"]*?\K\)
ищет самую первую скобку.return str_replace(['(', ')'], ['1', '2'], $m[0]);
RewriteCond %{REQUEST_URI} !^/login\.php
RewriteRule ^.*$ $0.php [L,QSA]
RewriteRule ^.*$ $0.php [L,QSA]
RewriteCond %{REQUEST_URI} !^/login\.php
RewriteCond %{THE_REQUEST} ([^\s]*)\.php(\?[^\s]*)?
RewriteRule (.*) %1 [R=301,L]
RewriteCond %{REQUEST_METHOD} GET
RewriteCond %{REQUEST_URI} !success [OR]
RewriteCond %{HTTP_REFERER} !success [OR]
RewriteRule ^.*$ - [R=404,L]
RewriteCond %{REQUEST_METHOD} GET
RewriteRule ^.*$ - [R=404,L]
RewriteCond %{REQUEST_METHOD} GET
RewriteCond %{REQUEST_URI} !success [OR]
RewriteCond %{HTTP_REFERER} !success
RewriteRule ^.*$ - [R=404,L]
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [L]
RewriteCond %{REQUEST_URI} !success
выполнится.try_files $uri /index.html;
В случае, если ни один файл не найден, то делается внутреннее перенаправление на uri, заданный последним параметром
/index.html
и заново ищется подходящий location для этого uri.location / {
. Prior to 2.2.12, it was not possible to change the Content-Type header with this directive.
Header always edit Content-Type "^text/html; charset=iso-8859-1$" "text/html; charset=utf-8"
ErrorDocument 404 /page404.php
Адрес который проверяете
/test
или/test/
там в конце есть слеш или нет?