源码网商城,靠谱的源码在线交易网站 我的订单 购物车 帮助

源码网商城

学习Apache的mod rewrite、access写法

  • 时间:2020-01-13 19:18 编辑: 来源: 阅读:
  • 扫一扫,手机访问
摘要:学习Apache的mod rewrite、access写法
Apache 的 mod rewrite RewriteEngine On RewriteBase /B2B/website/ RewriteRule ^article-([0-9]+).html$ view_details.php?browse=profile&id=$1 以上这个测试通过的。如果不行关键是服务器端,以后的怎么改就发挥了 关于图片的 可以加一个 /503(id)/title.htm 这样一定不重复了,用503或其他数字或者是abc也行,不顾oabc还想不是很理想,学学ii的,他就是用数字的定义所有的功能就行了 这个很有参考价值的 <IfModule mod_rewrite.c> RewriteEngine On RewriteRule ^(.*)/archiver/((fid|tid)-[w-]+.html)$ $1/archiver/index.php?$2 RewriteRule ^(.*)/forum-([0-9]+)-([0-9]+).html$ $1/forumdisplay.php?fid=$2&page=$3 RewriteRule ^(.*)/thread-([0-9]+)-([0-9]+)-([0-9]+).html$ $1/viewthread.php?tid=$2&extra=page%3D$4&page=$3 RewriteRule ^(.*)/space-(username|uid)-(.+).html$ $1/space.php?$2=$3 RewriteRule ^(.*)/tag-(.+).html$ $1/tag.php?name=$2 </IfModule> discuz的 最强wordpress的 # BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule> # END WordPress 关键看看 %怎么用了 还有 [...]
  • 全部评论(0)
联系客服
客服电话:
400-000-3129
微信版

扫一扫进微信版
返回顶部