Solved

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

Posted on 2014-07-24
2
500 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 40

Accepted Solution

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

use a permanent redirect.
0
 
LVL 2

Author Closing Comment

by:EndeavorToPersevere
ID: 40217354
Thanks!
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Because your company can’t afford for you to make SEO mistakes, you’ll want to ensure you’re taking the right steps each and every time you post a new piece of content. This list of optimization do’s and don’ts can help you become an SEO wizard.
SEO can be a real minefield to navigate, but there are three simple ways to up your SEO game just be re-assessing your content output.
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…

830 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