亚洲乱码中文字幕综合,中国熟女仑乱hd,亚洲精品乱拍国产一区二区三区,一本大道卡一卡二卡三乱码全集资源,又粗又黄又硬又爽的免费视频

學習Apache的mod rewrite、access寫法

 更新時間:2008年09月13日 17:21:02   作者:  
Apache的mod_rewrite是提供了強大URL操作的殺手級的模塊,可以實現(xiàn)幾乎所有你夢想的URL操作類型,其代價是你必須接受其復雜性,因為mod_rewrite的主要障礙就是初學者不容易理解和運用,即使是Apache專家有時也會發(fā)掘出mod_rewrite的新用途。
Apache 的 mod rewrite
RewriteEngine On RewriteBase /B2B/website/ RewriteRule ^article-([0-9]+)\.html$ view_details.php?browse=profile&id=$1
以上這個測試通過的。如果不行關鍵是服務器端,以后的怎么改就發(fā)揮了
關于圖片的 可以加一個 /503(id)/title.htm 這樣一定不重復了,用503或其他數(shù)字或者是abc也行,不顧oabc還想不是很理想,學學ii的,他就是用數(shù)字的定義所有的功能就行了

這個很有參考價值的
<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
關鍵看看 %怎么用了 還有 [...]

相關文章

最新評論