RewriteEngine On
RewriteCond %{REQUEST_URI} !^/index\.html$
RewriteRule ^(.*)$ index.php [L]
server {
listen 80;
server_name subdomain.domain.com;
location / {
proxy_pass http://domain.com/subdomain/;
}
}
RewriteCond %{REQUEST_URI} ^\/$
RewriteCond %{HTTP_HOST} ^www\.(.*)$
RewriteRule ^(.*)$ http://%1/$1 [L,R=301]
RewriteCond %{REQUEST_URI} !\?
RewriteCond %{REQUEST_URI} !\&
RewriteCond %{REQUEST_URI} !\=
RewriteCond %{REQUEST_URI} !\.
RewriteCond %{REQUEST_URI} \/$
RewriteCond %{HTTP_HOST} ^www\.(.*)$
RewriteRule ^(.*)\/$ http://%1/$1 [L,R=301]
RewriteCond %{REQUEST_URI} !\?
RewriteCond %{REQUEST_URI} !\&
RewriteCond %{REQUEST_URI} !\=
RewriteCond %{REQUEST_URI} !\.
RewriteCond %{REQUEST_URI} !\/$
RewriteCond %{HTTP_HOST} ^www\.(.*)$
RewriteRule ^(.*)$ http://%1/$1 [L,R=301]
RewriteCond %{REQUEST_URI} !\?
RewriteCond %{REQUEST_URI} !\&
RewriteCond %{REQUEST_URI} !\=
RewriteCond %{REQUEST_URI} !\.
RewriteCond %{REQUEST_URI} \/$
RewriteCond %{HTTP_HOST} ^([^www].*)$
RewriteRule ^(.*)\/$ http://%1/$1 [L,R=301]
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{HTTP_HOST} ^(?:www\.|)(.+) [NC]
RewriteRule ^(.*)/$ http://%1/$1 [R=301,L]
RewriteCond %{HTTP_HOST} ^www\.(.+) [NC]
RewriteRule ^(.*)$ http://%1/$1 [R=301,L]
$content = preg_replace( array('{<a(.*?)(wp-att|wp-content\/uploads)[^>]*><img}', '{ wp-image-[0-9]*" /></a>}'), array('<img','" />'), $content );
$content = preg_replace('~(<a\b[^>]*>)?<img[^>]*>(</a>)?~i', '', $content);
if ($request_uri ~ "/redir\?domain=mybot&start=\d+") {
return 301 tg://resolve?$args;
}
preg_match('!luna-table__cell_type_sqi">([\d\s]+)!u', $html, $match);
$result = preg_replace('!\s!u', '', $match[1]);
DirectorySlash Off
<base>
htmlbook.ru/html/base RewriteEngine On
RewriteRule ^(learn-html5)/(basic|overview)$ /$1/lesson/index.php?id=$2 [L]
RewriteCond %{QUERY_STRING} ^BlogPostSearch(?i:%5B|\[)theme_id(?i:%5D|\])=1$
RewriteRule ^blog/index$ https://mirtreiderov.ru/blog/theme/finanasovie-novosti? [R=301,L]
RewriteCond %{QUERY_STRING} ^$
RewriteRule ^blog/index$ https://mirtreiderov.ru/blog [R=301,L]
Redirect 301 /blog/index /blog
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^([^/]{0,7})$ /go?id=$1 [L]
^(?=[\dAEIOUaeiouАОИЕЁЭЫУЮЯаоиеёэыуюя]{6,8}$)(\D*\d){3}.*
^(?=[\dB-Zb-zБ-Ьб-ь]{6,8}$)(?!.*[IUOEiuoeОИЕЁЫУоиеёыуiuoe])(\D*\d){3}.*