Home  >  Article  >  Backend Development  >  继续,如何URL重写去掉index.php?不是想象中的那么容易啊

继续,如何URL重写去掉index.php?不是想象中的那么容易啊

WBOY
WBOYOriginal
2016-06-13 11:21:001150browse

继续求助,怎么URL重写去掉index.php?不是想象中的那么容易啊。
IP(FTP): 175.102.3.231
用户名: youyaxli 
密码: 1r6wMki13Y
错误链接:http://www.youyax.com/forum/List-index-f-4.shtml
正确连接:http://www.youyax.com/forum/index.php/List-index-f-4.shtml
操作目的:地址栏重写去掉index.php
操作方法:编辑根目录的.htacess文件
服务器:Linux主机 Apache 2.2.23 + Nginx1.0.15
可以参考:https://wvw.52host.net/knowledgebase.php?action=displayarticle&id=176
httpd.ini的写法参考:

RewriteRule ^/forum/((Index|List|Content|admin|Vote|Message|Favor).*)$ /forum/index\.php/$1 [L]


对于里面的文件,请不要恶意改动



------解决方案--------------------
你看看可以了么
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn