# line below if for Apache 2.4
<ifModule mod_authz_core.c>
Require all granted
</ifModule>
# line below if for Apache 2.2
<ifModule !mod_authz_core.c>
allow from all
</ifModule>
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?module=$1 [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?%{QUERY_STRING}&module=$1 [L]
<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 line
let 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]