RewriteRule ^(.*)$ /index.php/$1 [L,QSA]
RewriteRule ^(.*)$ /index.php/$1 [L,QSA]
Options +FollowSymLinks
Options -Indexes
DirectoryIndex index.php index.html
AddDefaultCharset UTF-8
#php_flag register_globals off
#php_value memory_limit 180M
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteBase /
RewriteCond %{HTTP_HOST} ^(www\.|)oldsite\.ru$ [NC]
RewriteRule ^(.*)$ https://newsite.ru/$1 [R=301,L]
RewriteCond $1 !^(index\.php|uploads|robots\.txt|favicon\.ico|sitemap\.xml)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /index.php/$1 [L,QSA]
</IfModule>
RewriteCond %{HTTP_HOST} ^(?:www\.|)site\.ru$ [NC]
RewriteRule ^(.*)/(.*).html$ index.php?city=$1&articles=$2 [L]
RewriteCond %{HTTP_HOST} ^(?>www\.|)([^.]+)\.site\.ru$ [NC]
RewriteRule ^(.*)\.html$ index.php?city=%1&articles=$1 [L]
location /privacy-policy {
root /home/user/privacy_policy;
index index.html;
try_files $uri index.html =404;
}
http://www.oldmotor.ru/ -> https://oldmotor.ru/
http://oldmotor.ru/ -> https://oldmotor.ru/
server { listen 80; server_name www.oldmotor.ru oldmotor.ru; return 301 https://oldmotor.ru$request_uri; }
server {
listen 80 default_server;
server_name _;
return 403;
}
server {
listen 80;
server_name www.oldmotor.ru oldmotor.ru;
return 301 https://oldmotor.ru$request_uri;
}
server {
listen 80;
server_name www.webdu.ru webdu.ru;
return 301 https://webdu.ru$request_uri;
}
аналогично если пробел не в шаблоне, а в новом url