我有 .htaccess 文件循环在我身上。
该站点目前是一个旧的 Joomla 站点,我正在尝试用 Word Press 站点替换它。
我已将 WP 安装在名为 /new 的子目录中。一旦我对 WP 网站感到满意,我将删除 Joomla 网站。
目前,如果我尝试访问 www.mysite.com.au/new 上的任何内容,它将无法加载,并且我收到一条错误消息,指出我有太多重定向。
在顶层我有这个
# @version $Id: htaccess.txt 423 2005-10-09 18:23:50Z stingrey $
# @package Joomla
# @copyright Copyright (C) 2005 Open Source Matters. All rights reserved.
# @license http://www.gnu.org/copyleft/gpl.html GNU/GPL
# Joomla! is Free Software
##
#
# mod_rewrite in use
#
RewriteEngine On
# Uncomment following line if your webserver's URL
# is not directly related to physical file paths.
# Update YourJoomlaDirectory (just / for root)
# RewriteBase /YourJoomlaDirectory
#
# Rules
#
RewriteCond %{REQUEST_FILENAME} !\.(jpg|jpeg|gif|png|css|js|pl|txt)$
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*) index.php
RedirectMatch permanent ^/ContactUs.htm$ http://www.sitename.com.au/content/view/14/30/
RedirectMatch permanent ^/Contents.htm$ http://www.sitename.com.au/content/view/21/57
RedirectMatch permanent ^/new/$ http://www.sitename.com.au/new/index.php/
在 /new 目录中,我有这个:
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /new/
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /new/index.php [L]
</IfModule>
# END WordPress
我敢肯定答案很简单,但我就是看不到...有什么建议吗?
干杯