IIS 的 URL Rewrite 使用: 規則運算式
發表於10/08/2012
假設請求網址為 http://www.domain.com.tw/dir/search.aspx?user=sean
這算是自己的筆記吧! IIS 的 URL Rewrite 很好用,但想設定的人可能一頭霧水。Regular Expression 的 Pattern 是要從 http:// 開始、或是 www. 開始、或是 /dir 或 dir 都沒有說明, 每次都會忘記,所以自己做個筆記。址尾是否包含 Query String 也沒說明。
結論:
● 「模式:」填寫 Regular Expression Pattern,此例「^dir/search\.aspx$」是符合的。
● 「重寫 URL:」用 {R:1} ~ 9 當回溯值(Back-reference; 也就是 RegExp 中的括弧順序)。
● 勾「附加查詢字串」會把「?user=sean」加到「重寫 URL」尾端。
7 個回應:
fitflops
moncler jackets
michael kors outlet
coach outlet
timberland shoes
louis vuitton outlet
mont blanc pens
ray ban sunglasses
ugg outlet
cheap uggs
chenlina20170109
rolex replica watches
ralph lauren
coach factory outlet
gucci handbags
louis vuitton outlet
nfl jerseys
cheap uggs
sac longchamp pas cher
michael kors outlet clearance
fitflops sale clearance
20170224caiyan
Request permission, We would like to comment here with the aim of sharing some links about cyst diseases that you can click below
Cara menghilangkan kista ateroma
Pengobatan Penyakit Kista Ovarium
Biaya operasi kista ovarium
Pengobatan Kista Bartholin
Obat Kista Ganglion
Obat Kista|Cara Menghilangkan Kista Tanpa Operasi
바카라사이트
I am definitely enjoying your website. You definitely have some great insight and great stories.
What a truly magnificent post this is. Genuinely, outstanding amongst other presents I've ever seen on find in as long as I can remember. Amazing 바카라사이트
pusulabet
sex hattı
https://izmirkizlari.com
rulet siteleri
rexbet
YEC0V
I truly appreciate just perusing the entirety of your weblogs. Abogado Trafico Frederick Va
張貼留言