-
Apache服务器中使用伪静态功能,在线留言导航无效?
-
-
请问各位大侠们,谁在使用OEcms v3.1建站时,Apache服务器中使用伪静态功能,在线留言导航点击之后显示“对不起,不存在“mod=guestbook”模块,请检查!”,求解。
-
5110 次浏览
2 条评论
收藏
2个评论
-
-
--
2020-12-01 10:00
-
这两个应该怎么修改,什么意思啊,如果是安装在根目录应该怎么修改呢
-
-
回复 · 0条回复
-
-
-
--
楼主 2020-12-01 10:00
-
OE 老大很给力啊。俺提出来5分钟。OE老大就给我解决了。把.htaccess这个文件覆盖到以前的.htaccess即可。
由于不支持上传.htaccess后缀的文件,我把.htaccess文件内容贴出来,各位有这个问题的朋友们,自己建一个.htaccess文件,然后把下面的代码贴进去即可。
代码如下:
RewriteEngine on
# URL路由方式一
RewriteRule ^index\\.html$ index.php [L]
RewriteRule ^contact\\.html$ page.php?mod=contact [L]
RewriteRule ^about\\.html$ page.php?mod=about [L]
RewriteRule ^sitemap\\.html$ page.php?mod=sitemap [L]
RewriteRule ^link\\.html$ page.php?mod=link [L]
RewriteRule ^page-([0-9]+)\\.html$ page.php?mod=detail&id=$1 [L]
RewriteRule ^guestbook\\.html$ guestbook.php [L]
RewriteRule ^info\\.html$ info.php [L]
RewriteRule ^product\\.html$ product.php [L]
RewriteRule ^case\\.html$ case.php [L]
RewriteRule ^solution\\.html$ solution.php [L]
RewriteRule ^article\\.html$ article.php [L]
RewriteRule ^download\\.html$ download.php [L]
RewriteRule ^job\\.html$ job.php [L]
RewriteRule ^info-([0-9]+)\\.html$ info.php?mod=detail&id=$1 [L]
RewriteRule ^info-cat-([0-9]+)\\.html$ info.php?mod=list&cid=$1 [L]
RewriteRule ^info-page-([0-9]+)\\.html$ info.php?mod=list&page=$1 [L]
RewriteRule ^info-cat-([0-9]+)-([0-9]+)\\.html$ info.php?mod=list&cid=$1&page=$2 [L]
RewriteRule ^article-([0-9]+)\\.html$ article.php?mod=detail&id=$1 [L]
RewriteRule ^article-cat-([0-9]+)\\.html$ article.php?mod=list&cid=$1 [L]
RewriteRule ^article-page-([0-9]+)\\.html$ article.php?mod=list&page=$1 [L]
RewriteRule ^article-cat-([0-9]+)-([0-9]+)\\.html$ article.php?mod=list&cid=$1&page=$2 [L]
RewriteRule ^product-([0-9]+)\\.html$ product.php?mod=detail&id=$1 [L]
RewriteRule ^product-cat-([0-9]+)\\.html$ product.php?mod=list&cid=$1 [L]
RewriteRule ^product-page-([0-9]+)\\.html$ product.php?mod=list&page=$1 [L]
RewriteRule ^product-cat-([0-9]+)-([0-9]+)\\.html$ product.php?mod=list&cid=$1&page=$2 [L]
RewriteRule ^solution-([0-9]+)\\.html$ solution.php?mod=detail&id=$1 [L]
RewriteRule ^solution-cat-([0-9]+)\\.html$ solution.php?mod=list&cid=$1 [L]
RewriteRule ^solution-page-([0-9]+)\\.html$ solution.php?mod=list&page=$1 [L]
RewriteRule ^solution-cat-([0-9]+)-([0-9]+)\\.html$ solution.php?mod=list&cid=$1&page=$2 [L]
RewriteRule ^case-([0-9]+)\\.html$ case.php?mod=detail&id=$1 [L]
RewriteRule ^case-cat-([0-9]+)\\.html$ case.php?mod=list&cid=$1 [L]
RewriteRule ^case-page-([0-9]+)\\.html$ case.php?mod=list&page=$1 [L]
RewriteRule ^case-cat-([0-9]+)-([0-9]+)\\.html$ case.php?mod=list&cid=$1&page=$2 [L]
RewriteRule ^job-([0-9]+)\\.html$ job.php?mod=detail&id=$1 [L]
RewriteRule ^job-cat-([0-9]+)\\.html$ job.php?mod=list&cid=$1 [L]
RewriteRule ^job-page-([0-9]+)\\.html$ job.php?mod=list&page=$1 [L]
RewriteRule ^job-cat-([0-9]+)-([0-9]+)\\.html$ job.php?mod=list&cid=$1&page=$2 [L]
RewriteRule ^download-([0-9]+)\\.html$ download.php?mod=detail&id=$1 [L]
RewriteRule ^download-cat-([0-9]+)\\.html$ download.php?mod=list&cid=$1 [L]
RewriteRule ^download-page-([0-9]+)\\.html$ download.php?mod=list&page=$1 [L]
RewriteRule ^download-cat-([0-9]+)-([0-9]+)\\.html$ download.php?mod=list&cid=$1&page=$2 [L]
# URL路由模式二
#RewriteRule ^index\\.html$ index.php [L]
RewriteRule ^contact$ page.php?mod=contact [L]
RewriteRule ^about$ page.php?mod=about [L]
RewriteRule ^sitemap$ page.php?mod=sitemap [L]
RewriteRule ^link$ page.php?mod=link [L]
RewriteRule ^page/([0-9]+)\\.html$ page.php?mod=detail&id=$1 [L]
RewriteRule ^guestbook$ guestbook.php [L]
RewriteRule ^info$ info.php [L]
RewriteRule ^product$ product.php [L]
RewriteRule ^case$ case.php [L]
RewriteRule ^solution$ solution.php [L]
RewriteRule ^article$ article.php [L]
RewriteRule ^download$ download.php [L]
RewriteRule ^job$ job.php [L]
RewriteRule ^info/([0-9]+)\\.html$ info.php?mod=detail&id=$1 [L]
RewriteRule ^info/cat-([0-9]+)\\.html$ info.php?mod=list&cid=$1 [L]
RewriteRule ^info/page-([0-9]+)\\.html$ info.php?mod=list&page=$1 [L]
RewriteRule ^info/cat-([0-9]+)-([0-9]+)\\.html$ info.php?mod=list&cid=$1&page=$2 [L]
RewriteRule ^article/([0-9]+)\\.html$ article.php?mod=detail&id=$1 [L]
RewriteRule ^article/cat-([0-9]+)\\.html$ article.php?mod=list&cid=$1 [L]
RewriteRule ^article/page-([0-9]+)\\.html$ article.php?mod=list&page=$1 [L]
RewriteRule ^article/cat-([0-9]+)-([0-9]+)\\.html$ article.php?mod=list&cid=$1&page=$2 [L]
RewriteRule ^product/([0-9]+)\\.html$ product.php?mod=detail&id=$1 [L]
RewriteRule ^product/cat-([0-9]+)\\.html$ product.php?mod=list&cid=$1 [L]
RewriteRule ^product/page-([0-9]+)\\.html$ product.php?mod=list&page=$1 [L]
RewriteRule ^product/cat-([0-9]+)-([0-9]+)\\.html$ product.php?mod=list&cid=$1&page=$2 [L]
RewriteRule ^solution/([0-9]+)\\.html$ solution.php?mod=detail&id=$1 [L]
RewriteRule ^solution/cat-([0-9]+)\\.html$ solution.php?mod=list&cid=$1 [L]
RewriteRule ^solution/page-([0-9]+)\\.html$ solution.php?mod=list&page=$1 [L]
RewriteRule ^solution/cat-([0-9]+)-([0-9]+)\\.html$ solution.php?mod=list&cid=$1&page=$2 [L]
RewriteRule ^case/([0-9]+)\\.html$ case.php?mod=detail&id=$1 [L]
RewriteRule ^case/cat-([0-9]+)\\.html$ case.php?mod=list&cid=$1 [L]
RewriteRule ^case/page-([0-9]+)\\.html$ case.php?mod=list&page=$1 [L]
RewriteRule ^case/cat-([0-9]+)-([0-9]+)\\.html$ case.php?mod=list&cid=$1&page=$2 [L]
RewriteRule ^job/([0-9]+)\\.html$ job.php?mod=detail&id=$1 [L]
RewriteRule ^job/cat-([0-9]+)\\.html$ job.php?mod=list&cid=$1 [L]
RewriteRule ^job/page-([0-9]+)\\.html$ job.php?mod=list&page=$1 [L]
RewriteRule ^job/cat-([0-9]+)-([0-9]+)\\.html$ job.php?mod=list&cid=$1&page=$2 [L]
RewriteRule ^download/([0-9]+)\\.html$ download.php?mod=detail&id=$1 [L]
RewriteRule ^download/cat-([0-9]+)\\.html$ download.php?mod=list&cid=$1 [L]
RewriteRule ^download/page-([0-9]+)\\.html$ download.php?mod=list&page=$1 [L]
RewriteRule ^download/cat-([0-9]+)-([0-9]+)\\.html$ download.php?mod=list&cid=$1&page=$2 [L]
-
-
回复 · 0条回复
-
作者信息
-
关注
-
试
免费试用
-
咨询热线
-
咨询热线
020-82299 259
-
在线咨询