Hello everyone,
I recently moved a website from hostgator (Apache server) to an Azure App Service (IIS) and I'm having issues transferring the .htaccess rewrite rules to web.config.
I tried using the IIS manager to convert the rules but when I try the page I get the following error: "The resource you are looking for has been removed, had its name changed, or is temporarily unavailable."
This is the original .htaccess rule:
RewriteRule ^tours/([^/]+) /tours?n=$1 [NC] This is what IIS manager translated it to:
<rule name="Imported Rule 2">
<match url="^tours/([^/]+)" />
<action type="Rewrite" url="/tours?n={R:1}" appendQueryString="false" />
</rule>
Can anyone please help me understand what is wrong here?
Thanks in advance for any help provided.