[ISAPI_Rewrite]
# 3600 = 1 hour
CacheClockRate 3600
RepeatLimit 32
# Protect httpd.ini and httpd.parse.errors files
# from accessing through HTTP
#heads
RewriteRule ^(.*)/Contact\.html\?*(.*)$ $1/index.\php\?pag=contact
RewriteRule ^(.*)/Manual-Submit-Software\.html\?*(.*)$ $1/index.\php\?a=pad&manual_submit
#others
RewriteRule ^(.*)/New\.html\?*(.*)$ $1/index.\php\?pag=new_prog&days=30
RewriteRule ^(.*)/New/Page(.*)\.html\?*(.*)$ $1/index.\php\?pag=new_prog&days=30&page=$2
RewriteRule ^(.*)/Today-New\.html\?*(.*)$ $1/index.\php\?pag=new_prog&days=1
RewriteRule ^(.*)/Today-New/Page(.*)\.html\?*(.*)$ $1/index.\php\?pag=new_prog&days=1&page=$2
RewriteRule ^(.*)/New-Hot\.html\?*(.*)$ $1/index.\php\?pag=new_prog&days=7&hits=10
RewriteRule ^(.*)/New-Hot/Page(.*)\.html$ /index.\php\?pag=new_prog&days=7&hits=10&page=$2
RewriteRule ^(.*)/Downloads\.html\?*(.*)$ $1/index.\php\?pag=downloads
RewriteRule ^(.*)/Downloads/Page(.*)\.html\?*(.*)$ $1/index.\php\?pag=downloads&page=$2
#reviews
RewriteRule ^(.*)/ReadReview-(.*)\.html\?*(.*)$ $1/index.\php\?pag=read_review&id=$2&c
RewriteRule ^(.*)/AllReviews-(.*)\.html\?*(.*)$ $1/index.\php\?pag=all_reviews&id=$2&c
RewriteRule ^(.*)/Reviews-(.*)\.html\?*(.*)$ $1/index.\php\?pag=user_reviews&username=$2&c
#user 1
RewriteRule ^(.*)/Delete-Review-(.*)\.html\?*(.*)$ $1/index.\php\?a=user&b=reviews&delete=$2
RewriteRule ^(.*)/Edit-Review-(.*)\.html\?*(.*)$ $1/index.\php\?a=user&b=reviews&edit=$2
#report page
RewriteRule ^(.*)/Report/file-(.*)\.html\?*(.*)$ $1/index.\php\?pag=report&b=$2
#send friend
RewriteRule ^(.*)/Send-Friend/file-(.*)\.html\?*(.*)$ $1/index.\php\?pag=send_friend&b=$2
#users links
RewriteRule ^(.*)/User-Panel\.html\?*(.*)$ $1/index.\php\?a=user
RewriteRule ^(.*)/My-Settings\.html\?*(.*)$ $1/index.\php\?a=user&b=profil
RewriteRule ^(.*)/My-Alerts\.html\?*(.*)$ $1/index.\php\?a=user&b=alerts
RewriteRule ^(.*)/My-Reviews\.html\?*(.*)$ $1/index.\php\?a=user&b=reviews
RewriteRule ^(.*)/Change-Pass\.html\?*(.*)$ $1/index.\php\?a=user&b=profil&pass
RewriteRule ^(.*)/Log-Out\.html\?*(.*)$ $1/index.\php\?a=user&b=logout
RewriteRule ^(.*)/Register-Form\.html\?*(.*)$ $1/index.\php\?pag=register
RewriteRule ^(.*)/Lost-Password-Form\.html\?*(.*)$ $1/index.\php\?pag=password
RewriteRule ^(.*)/Resend-Confirmation-Email\.html\?*(.*)$ $1/index.\php\?pag=resend_email
#categorii
RewriteRule ^(.*)/([a-zA-Z\-]+)/([a-zA-Z\-]+)\.html\?*(.*)$ $1/index.\php\?os=$2&cat=$3
RewriteRule ^(.*)/([a-zA-Z\-]+)/([a-zA-Z\-]+)/([a-zA-Z0-9\-]+)\.html\?*(.*)$ $1/index.\php\?os=$2&cat=$3&subcat=$4
RewriteRule ^(.*)/([a-zA-Z\-]+)/([a-zA-Z\-]+)/([a-zA-Z0-9\-]+)/Page(.*)\.html\?*(.*)$ $1/index.\php\?os=$2&cat=$3&subcat=$4&page=$5
#program download
RewriteRule ^(.*)/([a-zA-Z\-]+)/([a-zA-Z\-]+)/([a-zA-Z0-9\-]+)/file_(.*)_1\.html\?*(.*)$ $1/index.\php\?a=prog&os=$2&cat=$3&subcat=$4&det=$5&dwn
#program buy
RewriteRule ^(.*)/([a-zA-Z\-]+)/([a-zA-Z\-]+)/([a-zA-Z0-9\-]+)/file_(.*)_2\.html\?*(.*)$ $1/index.\php\?a=prog&os=$2&cat=$3&subcat=$4&det=$5&buy
#program images
RewriteRule ^(.*)/([a-zA-Z\-]+)/([a-zA-Z\-]+)/([a-zA-Z0-9\-]+)/file_(.*)_4\.html\?*(.*)$ $1/index.\php\?a=prog&os=$2&cat=$3&subcat=$4&det=$5&img
#program autor
RewriteRule ^(.*)/([a-zA-Z\-]+)/([a-zA-Z\-]+)/([a-zA-Z0-9\-]+)/file_(.*)_5\.html\?*(.*)$ $1/index.\php\?a=prog&os=$2&cat=$3&subcat=$4&det=$5&pub
#program reviews
RewriteRule ^(.*)/([a-zA-Z\-]+)/([a-zA-Z\-]+)/([a-zA-Z0-9\-]+)/file_(.*)_3\.html\?*(.*)$ $1/index.\php\?a=prog&os=$2&cat=$3&subcat=$4&det=$5&rev
#program general
RewriteRule ^(.*)/([a-zA-Z\-]+)/([a-zA-Z\-]+)/([a-zA-Z0-9\-]+)/file_(.*)\.html\?*(.*)$ $1/index\.php\?a=prog&os=$2&cat=$3&subcat=$4&det=$5
RewriteRule ^(.*)/([a-zA-Z\-]+)\.html\?*(.*)$ $1/index\.php\?os=$2
RewriteRule ^(.*)/(.+)-(.+)\.html(\?(.*))*$ $1/index\.php\?module=$2&next=$3RewriteRule ^(.*)/(.+)\.html(\?(.*))*$ $1/index\.php\?module=$2
=================================================================
地址1:index.php?module=vip_payment
地址2:index.php?module=vip_payment&next=buy
伪静态访问链接:
vip_payment.html
vip_payment-buy.html
=====================================================
这样写比较好因为:next 为固定值无需修改。。
欢迎分享,转载请注明来源:夏雨云
评论列表(0条)