.htaccess简单重写不起作用
由于某种原因,这不起作用,我是否遗漏了一些明显的东西.htaccess简单重写不起作用,.htaccess,pattern-matching,rewrite,.htaccess,Pattern Matching,Rewrite,由于某种原因,这不起作用,我是否遗漏了一些明显的东西 RewriteRule ^(.*)infopopup.html$ /acatalog/infopopup.html 我想您需要将目标文件从重写规则中排除,因为这可能会导致无限的重写循环: RewriteRule ^acatalog/infopopup.html - [L] RewriteRule ^(.*)infopopup.html$ acatalog/infopopup.html [L] 这是一个循环问题,以下是最终有效的方法: Re
RewriteRule ^(.*)infopopup.html$ /acatalog/infopopup.html
我想您需要将目标文件从重写规则中排除,因为这可能会导致无限的重写循环:
RewriteRule ^acatalog/infopopup.html - [L]
RewriteRule ^(.*)infopopup.html$ acatalog/infopopup.html [L]
这是一个循环问题,以下是最终有效的方法:
RewriteBase /
RewriteCond %{REQUEST_URI} !/acatalog/.*
RewriteRule ^(.*)infopopup.html$ acatalog/infopopup.html [QSA,L]
您是否尝试检查
重写
模块是否已启用?另外,您可能希望在中转义该点。html
是的,由于我还有一些其他重写,所以启用了“重写”。当这一行被输入时,我得到了一个Internet服务器错误,有转义点,也没有转义点…您需要输入更多信息-有您知道的日志;)该登录哪个日志?我认为该错误是一个循环错误。。。