0
我有一个网站,路径为http://www.example.com/academic-solutions/resources/title-of-content/,我想重定向到http://www.example.com/title-of-content/。我在我的.htaccess文件中使用了下面的代码,它似乎确实在执行正确的重定向,但由于某些原因导致无限循环。此代码导致无限循环的任何原因?.htaccess重定向无尽循环
RewriteEngine On
RewriteBase/
RewriteCond %{REQUEST_URI} ^/academic-solutions/resources/(.+)$ [NC]
RewriteRule . /%1 [L,R=301]
任何帮助将不胜感激。如果这很重要,这是一个WordPress的网站。
感谢您的建议。我尝试过,但现在我每次尝试访问http://www.example.com/academic-solutions/resources/title-of-content/时都会被重定向到主页 – rynoceris