가 여기 내 가상 호스트 파일의 클립의 리디렉션되지 않습니다가상 호스트는
SeverName domain.com
ServerAlias www.domain.com
<Directory />
Options -Indexes +FollowSymlinks
RewriteEngine On
RewriteCond %{HTTP_HOST} ^[^\./]+\.[^\./]+$ [NC]
RewriteRule ^/(.*)$ http://www.domain.com/$1 [R=301,L]
RewriteBase/
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . archive.php [L]
</Directory>
domain.com은 www.domain.com로 리디렉션되지 않습니다.
아래의 내용은 페이지를 archive.php로 리디렉션 할 때 제대로 작동합니다.
이 질문은 http://webmasters.stackexchange.com/에 더 적합 할 수 있습니다. –
첫 번째 RewriteCond에는 오타가 있다고 생각합니다. 일치 패턴에서'{'는'['. –
좋은 요아킴. 그러나 여전히 문제는 해결되지 않았습니다. – user1052448