troubleshooting Question

301 strip aspx from URL in IIS

Avatar of GoodCode
GoodCode asked on
PHPMicrosoft IIS Web ServerWeb Servers
7 Comments1 Solution631 ViewsLast Modified:
We changed our blog and now the url's don't have .aspx on the end of them but the URL is still the same otherwise. So




I'd like to 301 all of the old url's to the new link.

This is the rule I tried but it' redirects to the 404 page:

  <rule name="Rewrite old blog to PHP format (compound route)" stopProcessing="false">
          <match url="([^/]+)/([^/\?]+)\.aspx$" />
          <action type="Rewrite" url="index.php?route={R:1}&amp;page={R:2}" redirectType="Temporary" />

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 7 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 7 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros