Solved

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

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

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

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

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…
Your personal information, where you live, your wedding information, and anything else personal may be located online and in many cases the aggregators who pulled this stuff did so without your permission. Here are ways that you can get rid of unwan…
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…
This Micro Tutorial will demonstrate how to add subdomains to your content reports. This can be very importing in having a site with multiple subdomains.

786 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