0
我有1託管與根htaccess重定向到特定域的特定文件夾 完美的作品。wordpress .htaccess重寫prev域名重定向循環
RewriteEngine on
RewriteCond %{HTTP_HOST} ^domain1.com$ [NC]
RewriteCond %{REQUEST_URI} !folder1/
RewriteRule ^(.*)?$ /folder1/$1 [L]
RewriteCond %{HTTP_HOST} ^domain2.com$ [NC]
RewriteCond %{REQUEST_URI} !folder2/
RewriteRule ^(.*)?$ /folder2/$1 [L]
上folder1
我與WordPress安裝
一個WP文件夾www/folder1/wp/.htaccess
我有
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /wp/
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /wp/index.php [L]
</IfModule>
# END WordPress
,如果我去http://domain1.com/wp/
everethings完美的作品
但如果我把dont't最後一個斜槓http://domain1.com/wp
並讓文件夾進入重定向循環。
有人可以幫我請
感謝
Luis,閱讀如何格式化Q的幫助,特別是插入代碼:-) – TerryE 2012-03-20 08:32:06