Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the regular expression to match the empty string for a rewrite rule?

I need a regular expression for a rewrite rule on iis7, I'm trying to redirect http://www.website.com to http://www.website.com/sample. But I only want the empty url string (extra points if you can figure it out with and without '/'), and I'm unsure how to create a rewrite rule to match to that.

Can someone help me out here?

like image 407
Mark Rogers Avatar asked Sep 24 '09 19:09

Mark Rogers


1 Answers

^/?$

I think...

like image 60
Deniz Dogan Avatar answered Oct 04 '22 19:10

Deniz Dogan