Htaccess Redirect issues in joomla

纵然是瞬间 提交于 2020-01-06 13:29:26

问题


Please help me with a redirect issue.

I am trying to redirect from http://www.project/index.php/blog to http://www.project/blog.

I tried the following but it did not work

RewriteRule ^(blog)$ ./index.php/ [L]         

回答1:


Give this a try:

Options +FollowSymlinks
RewriteEngine on
Rewriterule ^index.php/blog(.*)$ http://www.project/blog$1 [r=301,nc]



回答2:


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]


来源:https://stackoverflow.com/questions/37463416/htaccess-redirect-issues-in-joomla

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!