Mobile app version of vmapp.org
Login or Join
Lee4591628

: 301 redirect bulk aspx URLs on IIS We recently relaunched an old ASPX site as a new Drupal site on the same domain. No 301 redirect was implemented. I have outputted a list of 1000 URLs

@Lee4591628

Posted in: #301Redirect #Aspx #Drupal #Iis7 #Redirects

We recently relaunched an old ASPX site as a new Drupal site on the same domain. No 301 redirect was implemented.

I have outputted a list of 1000 URLs that need to be 301 redirected. Most of the URLs are the results of search queries that were committed on the website. I.E.:
www.mysite.com/electronics/CommunityDetails.aspx?FirstLetter=%&ID=444

We are running a Drupal site on IIS using a PHP plugin. Is there a way I can wild card a redirect of all ASPX pages? I know I can do it with .htaccess but that doesn't apply here. Any suggestions appreciated.

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Lee4591628

1 Comments

Sorted by latest first Latest Oldest Best

 

@Ravi8258870

Take a look at www.asp.net/mvc/tutorials/older-versions/deployment/using-asp-net-mvc-with-different-versions-of-iis-cs to wild card route, I don't know what version of IIS you are using, it's much easier in IIS 7.5. - I've set up a redirection rule (after I've installed the "URL Rewrite" IIS module).

Here's is the rule:

Request URL: Matches the Pattern
Using: Wildcards
Pattern: (.*)
Logical grouping: Match All
Input {HTTP_HOST}
Type: Matches the PAttern
Pattern: mydomainname.com.com Action Type: Redirect
Redirect URL: mydomainname.com{R:1}
Redirect Type: 301

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme