Apache的mod_rewrite是提供了强大URL操作的杀手级的模块,可以实现几乎所有你梦想的URL操作类型,其代价是你必须接受其复杂性,因为mod_rewrite的主要障碍就是初学者不容易理解和运用,即使是Apache专家有时也会发掘出mod_rewrite的新用途。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的,他就是用数字的定义所有的功能就行了

  这个很有参考价值的(http://www.8682222.com

  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

  discuz的

  最强wordpress的

  # BEGIN WordPress

  RewriteEngine On

  RewriteBase /

  RewriteCond %{REQUEST_FILENAME} !-f

  RewriteCond %{REQUEST_FILENAME} !-d

  RewriteRule . /index.php [L]

  # END WordPress

  关键看看 %怎么用了 还有 [...]

最新文章

  1. UVa 10410树重建
  2. linux命令 - alias
  3. iOS - 富文本AttributedString
  4. <转>WCF中出现死锁或者超时
  5. Netty学习之服务器端创建
  6. JAVA语法细节(1)
  7. SpringMVC——注解的使用与结果跳转方式
  8. 【HDOJ】1260 Tickets
  9. UNIX基础--安装应用程序: Packages 和 Ports
  10. The Nerd Factor SPOJ - MYQ5
  11. 使用requireJS
  12. 用tig来查看git log
  13. Python 判断闰年,判断日期是当前年的第几天
  14. Hive 报错:java.lang.RuntimeException: Unable to instantiate org.apache.hadoop.hive.metastore.HiveMetaStoreClient
  15. 《k8s-1.13版本源码分析》-调度器初始化
  16. 优化MySQL性能的几种方法-总结
  17. Effective Java 第三版——66. 明智谨慎地使用本地方法
  18. sql语句格式化数字(前面补0)
  19. IdentityServer4中Code/Token/IdToken对应可访问的资源(api/identity)
  20. MonkeyRunner_运行脚本(一)

热门文章

  1. Android: 通过Runtime.getRuntime().exec调用底层Linux下的程序或脚本
  2. webservice 介绍
  3. andoid 多线程断点下载
  4. 【VMware】安装不同系统的虚拟机出现开机黑屏的情况
  5. ubuntu遇到了 dpkg was interrupted, you must manually run 'dpkg..的问题
  6. EFCodeFirst 各种命令整理
  7. spring cloud Eureka 服务注册发现与调用
  8. 重构指南 - 封装集合(Encapsulate Collection)
  9. WinSock 完成端口模型
  10. 数据访问层 (DAO)