19
.htaccess重写以将根URL重定向到子目录
试图得到 www.example.com 直接去 www.example.com/store 我尝试了多段代码,但没有任何效果。 我尝试过的 Options +FollowSymlinks RewriteEngine on RewriteCond %{HTTP_HOST} ^example.com$ RewriteRule (.*) http://www.example.com/$1 [R=301,L] RewriteCond %{HTTP_HOST} ^(.+)\www.example\.com$ RewriteRule ^/(.*)$ /samle/%1/$1 [L] 我究竟做错了什么?