Just one slash

ISAPI_Rewrite is Apache mod_rewrite compatible URL rewriter for Microsoft IIS
User avatar
Posts: 5
Joined: 03 Oct 2012, 22:09

Just one slash

02 Aug 2017, 15:43

Hello everyone,

have an URL that should match if just one slash is inside my url:

modern-cars/ = this url is ok
modern-cars/audi/ = this must be false

My regex: ^(.*)\/{1,1}
Everything I try to match just one slash failes

Anyone has an idea?

Regards
Hagen

User avatar
Posts: 402
Joined: 06 Mar 2012, 11:59

Re: Just one slash

03 Aug 2017, 05:35

RewriteRule ^([^/]*)/$ format_string [Flags]

User avatar
Posts: 5
Joined: 03 Oct 2012, 22:09

Re: Just one slash

03 Aug 2017, 10:04

Genius

Thx so much

Return to ISAPI_Rewrite 3.0

Who is online

Users browsing this forum: No registered users and 23 guests