Apache 2 WWW проблема перенаправления

Это моя /etc/apache2/sites-availables/mysite.com конфигурация файла

ServerAdmin LOLILOL@LOL.com

ServerName www.example.com
Redirect permanent / http://www.example.com/

ServerAlias example.com

DocumentRoot /home/example/www
SuexecUserGroup example example
<Directory />

Options Indexes FollowSymLinks Includes ExecCGI
AllowOverride All
Order deny,allow
Allow from all
</Directory>
<Directory /home/example/www>
Options FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error.log
LogLevel warn
CustomLog ${APACHE_LOG_DIR}/access.log combined

Может кто-нибудь сказать мне, где найти проблему, чтобы перенаправить не www на www?

PS: я не могу получить доступ к своему сайту из http://example.com (Только из http://www.example.com/)

ПОМОГИ МНЕ, ПОЖАЛУЙСТА !!!!

0

Решение

Я делаю это в .htaccess.

RewriteCond %{HTTP_HOST} ^domain\.com$ [NC]
RewriteRule ^(.*)$ http://www.domain.com/$1 [R=301,L]
0

Другие решения

Других решений пока нет …

По вопросам рекламы ammmcru@yandex.ru
Adblock
detector