YUNUCMS Apache下伪静态规则

安装包根目录下:.htaccess

<IfModule mod_rewrite.c>

Options +FollowSymlinks -Multiviews
ErrorDocument 404 /404.htm
RewriteEngine On

RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f

RewriteRule ^(.*)\.(asp|aspx|asa|asax|dll|jsp|cgi|fcgi|pl)(.*)$ /404.htm
RewriteRule ^admin/(.*).html$ index.php/admin/$1 [QSA,PT,L]
RewriteRule ^admin/(.*)$ index.php/admin/$1 [QSA,PT,L]
RewriteRule ^m/$ index.php/wap/index/index [QSA,PT,L]
RewriteRule ^m/(.*)_(.*)/(.*)_(.*).html$ index.php/wap/show/index?etitle=$3&area=$1&cw=$4 [QSA,PT,L]
RewriteRule ^m/(.*)_(.*)/(.*).html$ index.php/wap/show/index?etitle=$3&area=$1 [QSA,PT,L]
RewriteRule ^m/search/$ index.php/wap/search/index [QSA,PT,L]
RewriteRule ^m/(.*)_search/$ index.php/wap/search/index?area=$1 [QSA,PT,L]
RewriteRule ^m/(.*)/(.*)_(.*).html$ index.php/wap/show/index?etitle=$2&cw=$3 [QSA,PT,L]
RewriteRule ^m/(.*)_tag/(.*)$ index.php/wap/tag/index?title=$2&area=$1 [QSA,PT,L]
RewriteRule ^m/tag/(.*)$ index.php/wap/tag/index?title=$1 [QSA,PT,L]
RewriteRule ^m/(.*)/(.*).html$ index.php/wap/show/index?etitle=$2 [QSA,PT,L]
RewriteRule ^m/(.*)_(.*)/$ index.php/wap/category/index?ctitle=$2&area=$1 [QSA,PT,L]
RewriteRule ^m/(.*)/$ index.php/wap/category/index?ctitle=$1 [QSA,PT,L]
RewriteRule ^m/(.*).html$ index.php/wap/index/index?area=$1 [QSA,PT,L]
RewriteRule ^statics/ueditor/dialogs/(.*)/(.*).html$ statics/ueditor/dialogs/$1/$2.html [QSA,PT,L]
RewriteRule ^index(.*)/$ index.php/index/index/index/$1 [QSA,PT,L]
RewriteRule ^(.*)_(.*)/(.*)_(.*).html$ index.php/index/show/index?etitle=$3&area=$1&cw=$4 [QSA,PT,L]
RewriteRule ^(.*)_(.*)/(.*).html$ index.php/index/show/index?etitle=$3&area=$1 [QSA,PT,L]
RewriteRule ^search/$ index.php/index/search/index [QSA,PT,L]
RewriteRule ^(.*)_search/$ index.php/index/search/index?area=$1 [QSA,PT,L]
RewriteRule ^(.*)/(.*)_(.*).html$ index.php/index/show/index?etitle=$2&cw=$3 [QSA,PT,L]
RewriteRule ^(.*)/(.*).html$ index.php/index/show/index?etitle=$2 [QSA,PT,L]
RewriteRule ^(.*)_tag/(.*)$ index.php/index/tag/index?title=$2&area=$1 [QSA,PT,L]
RewriteRule ^tag/(.*)$ index.php/index/tag/index?title=$1 [QSA,PT,L]
RewriteRule ^(.*)_(.*)/$ index.php/index/category/index?ctitle=$2&area=$1 [QSA,PT,L]
RewriteRule ^(.*)_(.*)/page/(.*)$ index.php/index/category/index?ctitle=$2&area=$1&page=$3 [QSA,PT,L]
RewriteRule ^(.*)/$ index.php/index/category/index?ctitle=$1 [QSA,PT,L]
RewriteRule ^(.*)/page/(.*)$ index.php/index/category/index?ctitle=$1&page=$2 [QSA,PT,L]
RewriteRule ^(.*).html$ index.php/index/index/index?area=$1 [QSA,PT,L]
</IfModule>

收藏 (0) 打赏

感谢您的支持,我会继续努力的!

打开微信/支付宝扫一扫,即可进行扫码打赏哦,分享从这里开始,精彩与您同在
点赞 (0)

免责声明:本文系转载自互联网,版权归原作者所有;旨在传递信息,不代表中站源码网的观点和立场。如有侵权,请联系我们删除!qin@ceccz.com

中站源码网-网络情报局 云优CMS教程与问题 YUNUCMS Apache下伪静态规则 https://web.ceccz.com/cmsjc/yywt/3404.html

中站网

常见问题
  • 本站所有资源版权均属于原作者所有,这里所提供资源均只能用于参考学习用,请勿直接商用。若由于商用引起版权纠纷,一切责任均由使用者承担。更多说明请参考 VIP介绍。
查看详情
  • 最常见的情况是下载不完整: 可对比下载完压缩包的与网盘上的容量,若小于网盘提示的容量则是这个原因。这是浏览器下载的bug,建议换浏览器下载!
查看详情

相关文章

评论
暂无评论
官方客服团队

为您解决烦忧 - 24小时在线 专业服务

 
YUNUCMS Apache下伪静态规则-海报

分享本文封面