Solved

Is a 302 or 301 redirect better for this IIS rule?

Posted on 2014-07-24
2
484 Views
Last Modified: 2014-07-24
Following this article: Redirecting ASP.NET Legacy URLs to Extensionless with the IIS Rewrite Module

I added these rules but I'm not sure whether it is better for SEO to have the first rule do a "Permanent" (301) or a "Found" (302)

            <rules>
                <rule name="extensionless" stopProcessing="true">
                    <match url="(.*)\.aspx$" />
                    <action type="Redirect" url="{R:1}" redirectType="Found" />
                </rule>
				<rule name="removeextension" enabled="true">
					<match url=".*" negate="false" />
						<conditions>
							<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
							<add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
							<add input="{URL}" pattern="(.*)\.(.*)" negate="true" />
						</conditions>
						<action type="Rewrite" url="{R:0}.aspx" />
				</rule>				
            </rules>

Open in new window

0
Comment
Question by:EndeavorToPersevere
2 Comments
 
LVL 39

Accepted Solution

by:
Kyle Abrahams earned 500 total points
Comment Utility
From:
http://moz.com/learn/seo/redirection

use a permanent redirect.
0
 
LVL 2

Author Closing Comment

by:EndeavorToPersevere
Comment Utility
Thanks!
0

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

We are nearing the end of 2010 so no better time than to start guessing what to expect in 2011 for SEO (Search Engine Optimisation). Much has taken place in SEO in 2010 and I’m sure same will happen in the next, here is one of the biggest talking po…
Prologue It is often required to host multiple websites on a single instance of IIS, mostly in development environments instead of on production servers. I am sure it is not much a preferred solution on production servers but this is at least a pos…
This tutorial demonstrates how to identify and create boundary or building outlines in Google Maps. In this example, I outline the boundaries of an enclosed skatepark within a community park.  Login to your Google Account, then  Google for "Google M…
This tutorial walks through the best practices in adding a local business to Google Maps including how to properly search for duplicates, marker placement, and inputing business details. Login to your Google Account, then search for "Google Mapmaker…

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now