0

I'm running windows servers with IIS and normally I would do a redirect by simply adding a rule to .htaccess to redirect a couple of urls that have gotten into google index due a typo, however because its not a valid file type .net jumps in first and throws an application error. The url in question ends: "/presents-for-her..." which includes the 3 dots, which is where I'm having the issue - anyone got any thoughts on how I can either get past the .net application(which we are not using) so I can .htaccess it or to handle it within .net? There are only 4 bad urls so it wont take an extensive set of rules to sort out.

3
  • IIS does not support .htaccess file, so you should study IIS instead, learn.microsoft.com/en-us/iis/application-frameworks/… Commented Dec 23, 2019 at 15:17
  • I already have ISAPI rewrite installed and working but I will look at web.config redirect rules Commented Dec 23, 2019 at 16:40
  • "ISAPI rewrite", what ISAPI rewrite? Please choose the right terms to use. Commented Dec 23, 2019 at 18:00

1 Answer 1

0

Are you still using IIS 5/6 in windows server 2003 or 2005? If you are using windows server 2008 or higher version. Then you shouldn't use ISAPI rewrite further.

Please use URL rewrite module instead.

https://www.iis.net/downloads/microsoft/url-rewrite

And it support to convert .htaccess to IIS rule.

https://learn.microsoft.com/en-us/iis/extensions/url-rewrite-module/importing-apache-modrewrite-rules

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.