Redirect aspx files to a different path structure on a different domain using a different server-side language?
-
Without getting into the debate/discussion about which server-side language should or should not be used, I am faced with the reality of moving an old ASP.NET site to a Coldfusion one with a different domain and different folder structure.
Example: www.thissite.com/animals/lion.aspx --> www.thatsite.com/animals/africa/lion.cfm
What is the best way to redirect individual .aspx pages to their .cfm counterparts keeping in mind that, in many cases, the folder paths will be different? If it would mean less work, I am hoping this can be done at the server level (IIS 6) rather than modifying the code on each now-defunct page.
And on a related note, how long should any redirects be kept in place?
My apologies if this has been answered in this forum in the past, but I did do a lot of searching first (both here and elsewhere) before posting this query.
-
Thanks for the quick response, Nakul. The number of affected pages are in the dozens. And we are ranking moderately, but are obviously looking at methods to rank higher.
When you say "ensure each one of your pages redirects to your new .cfm" and "make sure each page is being 301 redirected", should that be done within the code of each page in question? Or can this be accomplished at the server level somehow where we can list the files we need re-directed and to where they should now point?
And regardless of which method, I will still need some assistance on the coding or server setup required.
Thanks!
-
How big is your website ? How many pages are you talking ?
If you get a considerable search traffic, and are ranking well in the search engines, I would strongly advise to ensure each one of your pages redirects to your new .cfm counterpart. There's a lot of advantage in doing that and a absolutely no reason why you shouldn't do it. You know that, and that's why you have been researching and finally posted this question.
You need to work with your programmers and make sure each page is being 301 redirected. I would suggest keeping the redirects almost indefinitely for now. It's definitely not 1, 2 or 3 months. Although, in a couple years, you could remove the links, but then if it does not hurt, it's best to keep them.
Got a burning SEO question?
Subscribe to Moz Pro to gain full access to Q&A, answer questions, and ask your own.
Browse Questions
Explore more categories
-
Moz Tools
Chat with the community about the Moz tools.
-
SEO Tactics
Discuss the SEO process with fellow marketers
-
Community
Discuss industry events, jobs, and news!
-
Digital Marketing
Chat about tactics outside of SEO
-
Research & Trends
Dive into research and trends in the search industry.
-
Support
Connect on product support and feature requests.
Related Questions
-
Preserve domain on 301 redirect?
We have a domain solely used for print advertising that does a 301 redirect to a landing page (a department home page) on our "real" domain that is indexed on Google. Example: www.bmwrepairs.com redirects to www.repairshop.com/bmwrepairs. Is there a way to do a 301 redirect so that when they get redirected, the URL in the browser address bar remains www.bmwrepairs.com?
Intermediate & Advanced SEO | | Jazee1 -
Flip-Flopping domains - 301 redirect question
We have a client who has had the following domain setup for some time: longdomain.com 301 -> shortdomain.com Now, they would like to go back to the original longdomain.com, and will have the following setup: shortdomain.com 301 -> longdomain.com Obviously, I'm concerned about redirect loops cached in the browser. I plan to have the 301's from longdomain.com changed over to 302's for two weeks ahead of the change, so that hopefully when the change happens, browsers and search engines are more ready to respond. I also plan to establish rel=canonical on the longdomain.com pages after the switch. Is there anything else you'd recommend to help with the changeover? Should we plan for an intermediary period were both domains are serving the content, so that the redirects can be purged, before being re-established the other direction? Thanks in advance.
Intermediate & Advanced SEO | | Bit-Wizards0 -
installed PageSpeed Module on our server but no difference to site
Hi
Intermediate & Advanced SEO | | Direct_Ram
I have been searching for an answer for a while now and couldnt find it so maybe someone has had a similar problem. We have installed PageSpeed Module on our server. The administrator has said it is active and has run a test below: [root@mydomain ~]# curl -D- https://www.mydomain.com/ | head -10
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
14 102k 14 15029 0 0 40506 0 0:00:02 --:--:-- 0:00:02 64780HTTP/1.1 200 OK
Server: nginx/1.6.0
Date: Fri, 10 Apr 2015 11:28:43 GMT
Content-Type: text/html
Content-Length: 104885
Connection: keep-alive
Set-Cookie: ci_session=BGANYlg8VmsPLgN1AWABMldkAGUGLVZwVmhQdQd0CGIEaFI6VgkEOQdmUSYHbQZyXz9TZVE4Vm4CIwxnB2hYbAZrAGUHZQg%2BUjUFOgRlUWAEYg05WDxWMg82A2ABOQEzV2IAaQZsVjBWPFA2BzEIaAQ%2FUjBWNwRmBztRJgdtBnJfP1NnUTpWbgIjDDoHflhSBjwAMgdjCHlSNAVwBHdRJwQ6DStYM1ZgD2YDPAF4ATJXZABmBiFWMVY%2FUD4HKQg5BDRSelZnBGAHIFE%2FByUGO180U2ZRMFZ2AnQMIAdrWH8GAgA3B2AIblI%2FBXcEJlE%2BBHINYlg4VmAPZwM8AXgBYFchAC0GY1YsVjpQKAc2CDIEKVJjVnYEeAd6UTwHYAZeXzNTYlEnViYCZAw3B2ZYbAYpAHsHawhiUj8FdgR8USgEZg02WHxWeA91A2oBMwFhVzcAKgZ9Vm9WIlAxBykIOgQ%2BUnpWYQRwB0xRVwcFBi5fNlN4UTtWYgIvDGEHIFg%2BBn0AFAdmCHhSOAVgBCRRQARCDRtYKVYrDzkDbwE4ASxXZQBxBj1WLVY%2BUCYHawhiBGVSPVYyBD4HLVE1B3gGMF89U3ZRZlY9AmMMIAd9WGUGbwB5BzYIJVJlBS0ENlEnBDoNK1gzVmAPZgM8AXgBb1c1ACwGe1ZcVmxQZQdzCGIEcVI9ViIEKQcgUT8HPwY7XzRTYlE4VmwCNwxlBztYPgZvAGUHPAh4UmsFOgQ%2BUScEdA0rWGxWIw8KA2IBOwF3VzUAfQY0VnBWN1A2Bz0IKQQlUm9WKw%3D%3D; expires=Fri, 10-Apr-2015 13:28:43 GMT; path=/
Set-Cookie: ci_session=a%3A0%3A%7B%7D; expires=Thu, 10-Apr-2014 21:28:43 GMT; path=/
Set-Cookie: ci_session=BWEFalk4UWwJKFIq; expires=Fri, 10-Apr-2015 13:28:43 GMT; path=/
X-Mod-Pagespeed: 1.9.32.3-4448 But there doesn't seem to be any difference to the sites speed or change in google speed test recommendations. I do not have much knowledge on servers but the server company has assured me it is active and all the filters are on - so not sure why I am not seeing anything different. if anyone has any advise on this it would be great. thanks E0 -
SEO connectivity between domains and sub-domains
Hi, My web site georgerossphotography.com and my ecommerce site store.georgerossphotography.com each reside on different servers. georgerossphotography.com has a domain authority of 30 store.georgerossphotography.com has a domain authority of 30 Clearly, they are considered two individual sites but is there any way that I can boost the performance of the primary domain by passing along some for that good SEO juice from the sub-domain? Any input would be gratefully received. Regards,
Intermediate & Advanced SEO | | sirgeorge0 -
Do I need to set Preferred domain when the non-www redirects to www version?
Hi mozzers, Not sure if I should setup preferred domain when the non www version redirects to the www version? if yes why? Thanks!
Intermediate & Advanced SEO | | Ideas-Money-Art0 -
Do inbound links pass onto new domain if redirected?
If I set up a website on a new domain and have the old domain 301 redirected to the new domain, do the links pointing to the old site impact the new site?
Intermediate & Advanced SEO | | priceseo0 -
Do I need to use canonical tags if I'm 301 redirecting pages?
I just took a job about three months and one of the first things I wanted to do was restructure the site. The current structure is solution based but I am moving it toward a product focus. The problem I'm having is the CMS I'm using isn't the greatest (and yes I've brought this up to my CMS provider). It creates multiple URL's for the same page. For example, these two urls are the same page: (note: these aren't the actual urls, I just made them up for demonstration purposes) http://www.website.com/home/meet-us/team-leaders/boss-man/
Intermediate & Advanced SEO | | Omnipress
http://www.website.com/home/meet-us/team-leaders/boss-man/bossman.cmsx (I know this is terrible, and once our contract is up we'll be looking at a different provider) So clearly I need to set up canonical tags for the last two pages that look like this: With the new site restructure, do I need to put a canonical tag on the second page to tell the search engine that it's the same as the first, since I'll be changing the category it's in? For Example: http://www.website.com/home/meet-us/team-leaders/boss-man/ will become http://www.website.com/home/MEET-OUR-TEAM/team-leaders/boss-man My overall question is, do I need to spend the time to run through our entire site and do canonical tags AND 301 redirects to the new page, or can I just simply redirect both of them to the new page? I hope this makes sense. Your help is greatly appreciated!!0 -
New Site: Use Aged Domain Name or Buy New Domain Name?
Hi,
Intermediate & Advanced SEO | | peterwhitewebdesign
I have the opportunity to build a new website and use a domain name that is older than 5 years or buy a new domain name. The aged domain name is a .net and includes a keyword.
The new domain would include the same keyword as well as the U.S. state abbreviation. Which one would you use and why? Thanks for your help!0