Zeroanarchy
Technical User
Hi I am a bit stuck and was wondering if someone might be able to help.
I would normally work with apache but in this case I am working with IIS Ionic. The issue is the software I am using only excepts Perl Regular Expression and I can not understand why the following regular expression will not work. Can anyone help please. I have searched the web and tried several alternatice none which worked, so really apreciate any help offered.
Thanks in advance.
Cheers
ZeroAnarchy
Experience is a wonderful thing. It enables you to recognize a mistake
when you make it again.
I would normally work with apache but in this case I am working with IIS Ionic. The issue is the software I am using only excepts Perl Regular Expression and I can not understand why the following regular expression will not work. Can anyone help please. I have searched the web and tried several alternatice none which worked, so really apreciate any help offered.
Code:
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /([^/]+/)*main\.htm\ HTTP/
RewriteRule ^(([^/]+/)*)main\.htm$ [URL unfurl="true"]http://www.mywebsite.com/Home/$1[/URL] [R=301,L]
Thanks in advance.
Cheers
ZeroAnarchy
Experience is a wonderful thing. It enables you to recognize a mistake
when you make it again.