0
http://mydomain.com/index.php에서 http://mydomain.com 또는 http://mydomain.com/variable에서 http://mydomain.com으로 301을 통해 리디렉션 할 수있는 방법은 무엇입니까? 나는이 시도했지만 작동하지 않습니다301 리디렉션, index.php
Options +FollowSymlinks
RewriteEngine on
rewritecond %{http_host} ^http://mydomain.com/variable [nc]
rewriterule ^(.*)$ http://mydomain.com/$1 [r=301,nc]