N
niko
Прохожие
- Автор темы
- #1
Подскажите как наладить редирект .
. htaccess стоял код приведённый ниже для перенаправления с COM на RU (всё работало).
Options +FollowSymlinks
RewriteEngine on
rewritecond %{http_host} ^ИМЯ.com [nc]
rewriterule ^(.*)$ http://ИМЯ.ru/$1 [r=301,nc]
После включения ЧПУ WebAsyst shop в . htaccess добавилась коды и редирект перестал работать, подскажите как поправить редирект при включенном ЧПУ .
# User custom .htaccess config (/published/wbsadmin/html/configs/.htaccess.user)
AddType php5-script .php
Action php5-script /cgi-php/php5
Options +FollowSymlinks
RewriteEngine on
rewritecond %{http_host} ^ИМЯ.com [nc]
rewriterule ^(.*)$ http://ИМЯ.ru/$1 [r=301,nc]
# WebAsyst .htaccess config
AddDefaultCharset UTF-8
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^shop/(repo_themes|js|3rdparty|images_common|products_pictures|images|themes|css
)/(.*)$ published/SC/html/scripts/$1/$2?frontend=1 [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^shop/(imgval.php|wbs_messageserserver.php) published/SC/html/scripts/$1 [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(repo_themes|js|3rdparty|images_common|products_pictures|images|themes|css)/(.*
)$ published/SC/html/scripts/$1/$2?frontend=1 [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(imgval.php|wbs_messageserserver.php|get_file.php) published/SC/html/scripts/$1 [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^shop(.*) published/SC/html/scripts/$1&frontend=1 [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^login/(.*) login/index.php [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^installer/(.*) installer/index.php [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^published/$ published/index.php [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_URI} !^published
RewriteRule (.*) published/SC/html/scripts/index.php?__furl_path=$1&frontend=1 [QSA]
. htaccess стоял код приведённый ниже для перенаправления с COM на RU (всё работало).
Options +FollowSymlinks
RewriteEngine on
rewritecond %{http_host} ^ИМЯ.com [nc]
rewriterule ^(.*)$ http://ИМЯ.ru/$1 [r=301,nc]
После включения ЧПУ WebAsyst shop в . htaccess добавилась коды и редирект перестал работать, подскажите как поправить редирект при включенном ЧПУ .
# User custom .htaccess config (/published/wbsadmin/html/configs/.htaccess.user)
AddType php5-script .php
Action php5-script /cgi-php/php5
Options +FollowSymlinks
RewriteEngine on
rewritecond %{http_host} ^ИМЯ.com [nc]
rewriterule ^(.*)$ http://ИМЯ.ru/$1 [r=301,nc]
# WebAsyst .htaccess config
AddDefaultCharset UTF-8
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^shop/(repo_themes|js|3rdparty|images_common|products_pictures|images|themes|css
)/(.*)$ published/SC/html/scripts/$1/$2?frontend=1 [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^shop/(imgval.php|wbs_messageserserver.php) published/SC/html/scripts/$1 [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(repo_themes|js|3rdparty|images_common|products_pictures|images|themes|css)/(.*
)$ published/SC/html/scripts/$1/$2?frontend=1 [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(imgval.php|wbs_messageserserver.php|get_file.php) published/SC/html/scripts/$1 [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^shop(.*) published/SC/html/scripts/$1&frontend=1 [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^login/(.*) login/index.php [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^installer/(.*) installer/index.php [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^published/$ published/index.php [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_URI} !^published
RewriteRule (.*) published/SC/html/scripts/index.php?__furl_path=$1&frontend=1 [QSA]