Home >Backend Development >PHP Tutorial >discuz 伪静态设立以及改/forum.php为/forum/

discuz 伪静态设立以及改/forum.php为/forum/

WBOY
WBOYOriginal
2016-06-13 11:49:262257browse

discuz 伪静态设置以及改/forum.php为/forum/
discuz 伪静态设置以及改/forum.php为/forum/
如有个网站域名为:www.xxx.com,论坛网址为www.xxx.com/forum.php
现在想把www.xxx.com/forum.php做伪静态处理
改为:www.xxx.com/forum/

请大侠们指点!
------解决方案--------------------
RewriteEngine on
RewriteBase /
RewriteRule /forum/ /forum\.php
这个是.htaccess的写法,其实RewriteRule就是正则表达式,前面的是访问的URL,后面的是真实的URL。另外DZ默认首页也可以直接把后面的forum.php去掉
------解决方案--------------------
discuz 伪静态设置
------解决方案--------------------
   你百度谷歌 应该有适合你的答案。。先百度 自己研究下

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