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

WBOY
Release: 2016-06-13 11:21:00
Original
1110 people have browsed it

继续求助,怎么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]
Copy after login


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



------解决方案--------------------
你看看可以了么
Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!