joomla中的htaccess重定向问题
问题描述:
请帮助我解决重定向问题。
Please help me with a redirect issue.
我正在尝试从 http://www.project/index.php/blog 到 http:// www.project / blog 。
我尝试了以下操作,但没有成功
I tried the following but it did not work
RewriteRule ^(blog)$ ./index.php/ [L]
答
如果要将请求的路径信息附加到 index.php
,则可以使用以下 RewriteRule
If you want to append the requested path info at index.php
, you might use this RewriteRule
RewriteCond %{REQUEST_URI} !^/index\.php
RewriteRule ^ /index.php%{REQUEST_URI} [L]