Metamorphosis
RSS feed

动态页面301到静态页面怎么写?

RewriteEngine On
RewriteCond %{QUERY_STRING} ^id=([0-9]+)$
RewriteRule ^site/article/view\.asp$ h-t-t-p://yourdomain.name/site/2011yugao/%1.html? [R=302,L]

需要 mod_rewrite,未经测试,把 h-t-t-p 替换为 http
原发布于 https://www.zhihu.com/question/19885009/answer/13249889


published 19 Oct 2011
blog comments powered by Disqus

Existentials

  • github
  • flickr
  • twitter
  • facebook
  • linkedin

Blogroll

  • wonderfulmore
  • 北京人在悉尼
  • sukie赵
  • cjPanda
  • btsb
  • vivian
  • cityyoho
  • maple
  • tulip
  • 坦克梁
  • stone
  • pavements
  • 问号鱼
  • Schlaraffenland
  • 東亞毒液學研究所
  • 草木贲华
  • 三楼的卡西欧计算器
  • 追忆吹水年华
  • bad habits die hard
  • 多说无益
  • 一天世界
  • 得果德语