\\"title\\": \\"[^"]*\\"
\\"(title|url)\\": \\"[^"]*\\"
RewriteCond %{HTTP_HOST} ^ww2\.loungefirst\.ml$ [NC]
RewriteRule ^(.*)$ /ww2/$1 [L]
RewriteEngine On
RewriteCond %{HTTP_HOST} ^ww2\.loungefirst\.ml$ [NC]
RewriteRule ^$ /ww2/index.html [L]
RewriteCond %{HTTP_HOST} ^ww2\.loungefirst\.ml$ [NC]
RewriteRule ^(.*)$ /ww2/$1 [L]
# BEGIN WordPress
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
# END WordPressle
DirectoryIndex index.html
RewriteEngine On
RewriteRule ^ - [R=410,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.html [L]
RewriteEngine On
RewriteCond %{HTTP_HOST} ^ww2\.loungefirst\.ml [NC]
RewriteRule ^(.*)$ /ww2/index.html [L]
# BEGIN WordPress
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
# END WordPress
/html/.htaccess
RewriteEngine On
RewriteCond %{HTTP_HOST} ^ww2\.site\.com$ [NC]
RewriteRule ^(.*)$ /ww2/$1 [L]
# BEGIN WordPress
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
# END WordPress
/html/ww2/.htaccess
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^ index.php [L]
server {
server_name sub1.domen.com;
...
}
server {
server_name sub2.domen.com;
...
}
location /t/
, а будет обработан в location /
.location ~ ^/api/(.*)$ {
root '%hostdir%/www';
rewrite ^ /index.php break;
# Тут дальше нужно добавить свой fastcgi_pass
}
location / {
root '%hostdir%/frontend/build';
try_files $uri /file.html;
}
<IfModule mod_rewrite.c>
<IfModule mod_negotiation.c>
Options -MultiViews -Indexes
</IfModule>
RewriteEngine On
#Перенаправить c www
RewriteCond %{HTTP_HOST} ^www\.(.*)$
RewriteRule ^(.*)$ https://%1/$1 [L,R=301]
#Перенаправить на https
RewriteCond %{HTTPS} =off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
#Перенаправить -> слэши, если не папка...
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} (.+)/$
RewriteRule ^ %1 [L,R=301]
RewriteCond %{ENV:REDIRECT_STATUS} ^$
RewriteRule ^(.*)\.html$ /$1 [R=301,L]
RewriteCond %{DOCUMENT_ROOT}/$1.html -f
RewriteRule ^([^.]+)$ /$1.html [L]
</IfModule>
12.34.example.com
?/var/www/platforms
/var/www/platforms/12
/var/www/platforms/34
/var/www/platforms/12.34