<Location />
AuthType GSSAPI
AuthName "GSSAPI Single Sign On Login"
GssapiCredStore keytab:/etc/httpd/key.keytab
Require valid-user
Require ip 192.168.10.20
</Location> RewriteCond %{THE_REQUEST} "^[^ ]* .*?\.php[? ].*$"
RewriteRule .* - [L,R=404]RewriteCond %{ENV:REDIRECT_STATUS} ^$
RewriteRule \.php - [L,R=404] RewriteRule ^mailing\.html$ /index.php?mailing=1 [L]
RewriteRule ^balance\.html$ /index.php?balance=1 [L] map $host $subdomain {
default "";
~^(.*)\.site\.com\.local$ $1;
}server_name ~^(?<subdomain>.*)\.site\.com\.local$; Player2\((\d+)(?<=Player2\()\d+Player2\(\K\d+RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)/$ /$1 [L,R=301]/$1 не хватает явного указания https://RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)/$ https://%{HTTP_HOST}/$1 [L,R=301] let result = vowelRegex.test(quoteSample); // Change this linelet result = quoteSample.match(vowelRegex); $text = '
<p>one</p>
<p>two</p>
<p>three</p>
';
$text = preg_replace('#<p>.*?three.*?</p>#i', '', $text);
echo $text;$text = '
<p>one</p> <p>two</p> <p>three</p>
';
$text = preg_replace('#<p>(?:(?!</p>).)*?three.*?</p>#i', '', $text);
echo $text; https://site.ru или https://%{HTTP_HOST}RewriteCond %{THE_REQUEST} ^[^?]+//
RewriteRule (.*) https://%{HTTP_HOST}/$1 [R=301,L] <Directory> доступна только в server config, virtual host.<Directory not allowed hereAllowOverride None на AllowOverride Allsudo a2enmod rewritesudo service apache2 restart RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^shop/catalog/(.*)$ /shop/catalog.php?category=$1 [L,NC]
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^shop/(.*)$ /shop/tovar.php?id=$1 [L]
RewriteCond %{DOCUMENT_ROOT}/$1.php -f
RewriteRule ^(.*)$ $1.php [L]