X-Redirect-By:
X-Powered-By: PHP
AllowOverride All
в настройках VirtualHost.RewriteRule ^(.*)$ /index.php?action=$1 [QSA]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ /index.php?action=$1 [QSA,L]
<IfModule mod_rewrite.c>
Options +FollowSymLinks
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-l
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !/bitrix/urlrewrite.php$
RewriteRule ^(.*)$ /bitrix/urlrewrite.php [L]
<IfModule mod_rewrite.c>
Options +FollowSymLinks
RewriteEngine On
RewriteRule ^food$ /food/index.php [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-l
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !/bitrix/urlrewrite.php$
RewriteRule ^(.*)$ /bitrix/urlrewrite.php [L]
SetEnvIf GEOIP_COUNTRY_CODE RU AllowCountry
Deny from env=!AllowCountry
location ~ ^/internal_redirect/(?<url>(?<r_scheme_and_host>\w+://[^/]+).*) {
internal;
proxy_pass $url$is_args$args;
proxy_intercept_errors on;
error_page 301 302 = @proxy;
}
location @proxy {
if ($upstream_http_location ~ '^/') {
rewrite ^ /internal_redirect/$r_scheme_and_host$upstream_http_location? last;
}
rewrite ^ /internal_redirect/$upstream_http_location? last;
}
location ~ ^/internal_redirect/(?<url>.+) {
internal;
proxy_pass $url$is_args$args;
proxy_intercept_errors on;
error_page 301 302 = @proxy;
}
location @proxy {
rewrite ^ /internal_redirect/$upstream_http_location? last;
}
Weishaupt, тут нужно заголовок temes.text поделить на две части и вторую часть отправить на перевод. Потом собрать строку из первой части заголовка и перевода второй части.
Или так