.htaccess和多个非预期重定向

.htaccess和多个非预期重定向,.htaccess,.htaccess,我最近通过检测发现,我们的.htaccess文件在工作时导致了一个双重定向,其中只需要一个重定向。我们正在将网页从旧网站重定向到位于的子目录中的新网站 我将非常感谢任何人能提供的关于如何修改现有.htaccess以将其最小化为单个重定向的任何建议 .htaccess的内容如下: <IfModule mod_substitute.c> SubstituteMaxLineLength 10M </IfModule> # BEGIN WordPress RewriteEngin

我最近通过检测发现,我们的.htaccess文件在工作时导致了一个双重定向,其中只需要一个重定向。我们正在将网页从旧网站重定向到位于的子目录中的新网站

我将非常感谢任何人能提供的关于如何修改现有.htaccess以将其最小化为单个重定向的任何建议

.htaccess的内容如下:

<IfModule mod_substitute.c>
SubstituteMaxLineLength 10M
</IfModule>
# BEGIN WordPress
RewriteEngine On
RewriteCond %{REQUEST_URI} !^/admin/?$
RewriteCond %{REQUEST_URI} !^/css/?$
RewriteCond %{REQUEST_URI} !^/cssmenu/?$
RewriteCond %{REQUEST_URI} !^/easybox/?$
RewriteCond %{REQUEST_URI} !^/etc/?$
RewriteCond %{REQUEST_URI} !^/fck/?$
RewriteCond %{REQUEST_URI} !^/greybox/?$
RewriteCond %{REQUEST_URI} !^/images/?$
RewriteCond %{REQUEST_URI} !^/inc/?$
RewriteCond %{REQUEST_URI} !^/includes/?$
RewriteCond %{REQUEST_URI} !^/jmenucss/?$
RewriteCond %{REQUEST_URI} !^/js/?$
RewriteCond %{REQUEST_URI} !^/lib/?$
RewriteCond %{REQUEST_URI} !^/mail/?$
RewriteCond %{REQUEST_URI} !^/member/?$
RewriteCond %{REQUEST_URI} !^/menujs/?$
RewriteCond %{REQUEST_URI} !^/myform/?$
RewriteCond %{REQUEST_URI} !^/popeye_css/?$
RewriteCond %{REQUEST_URI} !^/popeye_lib/?$
RewriteCond %{REQUEST_URI} !^/Scripts/?$
RewriteCond %{REQUEST_URI} !^/style/?$
RewriteCond %{REQUEST_URI} ^/$
RewriteRule (.*) http://www.gaconsulting.co.kr/au/ [R=301,L]
# Disable the server signature 
ServerSignature Off

替换电缆长度10M
#开始WordPress
重新启动发动机
重写cond%{REQUEST_URI}^/管理员/$
重写cond%{REQUEST_URI}^/css/$
重写cond%{REQUEST_URI}^/cssmenu/$
重写cond%{REQUEST_URI}^/easybox/$
重写cond%{REQUEST_URI}^/等/$
重写cond%{REQUEST_URI}^/fck/$
重写cond%{REQUEST_URI}^/灰盒/$
重写cond%{REQUEST_URI}^/图像/$
重写cond%{REQUEST_URI}^/公司/$
重写cond%{REQUEST_URI}^/包括/$
重写cond%{REQUEST_URI}^/jmenucss/$
重写cond%{REQUEST_URI}^/js/$
重写cond%{REQUEST_URI}^/lib/$
重写cond%{REQUEST_URI}^/邮件/$
重写cond%{REQUEST_URI}^/成员/$
重写cond%{REQUEST_URI}^/menujs/$
重写cond%{REQUEST_URI}^/myform/$
重写cond%{REQUEST_URI}^/大力水手$
重写cond%{REQUEST_URI}^/大力水手$
重写cond%{REQUEST_URI}^/脚本/$
重写cond%{REQUEST_URI}^/风格/$
重写cond%{REQUEST_URI}^/$
重写规则(.*)http://www.gaconsulting.co.kr/au/ [R=301,L]
#禁用服务器签名
服务器签名关闭

该规则永远不会重定向,因为所有的
重写条件都需要匹配。服务器上的其他内容导致双重重定向