LINUX.ORG.RU

странный редирект на apache2


0

0

Имеется 2 сайта:

1. example.com, в корне которого лежит .htaccess c содержимым:
Redirect permanent / http://example.org/

2. example.org (основной) в корне которого лежит .htaccess c сожержимым:

Order allow,deny
Allow from all
Options +FollowSymlinks
RewriteEngine on
RewriteBase /
RewriteRule ^.htaccess$ - [F]
RewriteRule ^images/(.*)$ kernel/images/$1 [L]
RewriteRule ^scripts/(.*)$ kernel/scripts/$1 [L]
RewriteRule ^(\w{2,3}/)?products/models/(.*) index.php?link=$1/products/models/&p=$2 [L]
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_URI} !^/i/.*$
RewriteCond %{REQUEST_URI} !^kernel/external/.*$
RewriteRule ^(.*)$ /index.php?link=$1&%{QUERY_STRING} [L]

ErrorDocument 404 /404/

если в браузере мы набираем http://examle.com/ мы переходим на http://examle.org/ (мягкая переадресация).

На сайте http://examle.org/ есть урл, например http://examle.org/dir/

Теперь странное: если набрать http://examle.com/dir/ то браузер кидают на
http://examle.org/dir?link=var/www/vhosts/org/www/dir/.
Тут мы конечно же, получаем 404.

Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.