Quantcast
Channel: URL Rewrite Module
Viewing all articles
Browse latest Browse all 2482

I cannot get 301 Redirects to work in URL Rewrite Module IIS7

$
0
0

I followed the instructions on two different pages (listed below) and I simply cannot get any 301 redirect to work on Windows 2008 R2 (x86) with IIS 7.   I've updated the Rewrite Module 2.0. I've tried both the user interface in the IIS Manager dashboard and I've tried directly editing the web.config file.  I am using WordPress and the rewrite modules works for the permalinks and also redirects 404 errors to a specific page.  So I know URL rewrite is working but I cannot get 301 redirects to work at all.

Is there some other prerequisite? I read up on the HTTP Redirects and installed that in IIS but that seems to provide only one rule which it seems to me would redirect everything to one location.  I am not sure if it is prerequisite for URL Rewrite 301 Redirects or how it should be configured.  

I initially wanted to have an external rewrite map because I have about 50 URL's to redirect to new pages on the same sitt. But I started out with just 2 to test it out. And I was wondering where does the external file (e.g. StaticRedirects.config) go? I assume in the same root directory as web.config lives. 

But I scratched the external file and placed my rewrite map in the web.config file just to get it working in the first place and that I cannot do.  There is SOMETHING I am missing.  So the instructions on the following link regarding multiple 301 Redirects does not work for me whether I have the redirect parameters in web.config or externally.

http://www.orcsweb.com/blog/peter/how-to-create-multiple-301-redirects-url-rewrite-map/

http://www.iis.net/learn/extensions/url-rewrite-module/using-rewrite-maps-in-url-rewrite-module

What am I missing?
Thank you


Viewing all articles
Browse latest Browse all 2482

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>