DNS vs IIS redirection
-
I'm working on a project where a site has gone through a rebrand and is therefore also moving to a new domain name. Some pages have been merged on the new site so it's not a lift and shift job and so I'm writing up a redirect plan.
Their IT dept have asked if we want redirects done by DNS redirect or IIS redirect. Which one will allow us to have redirects on a page level and not a domain level?
I think IIS may be the right route but would love your thoughts on this please.
-
If you are not changing the IP address you don't need to change the DNS, if you change the IP address, in addition to updating the DNS records you also need to properly redirect traffic from old urls to new urls.
With IIS the best option is using url rewrite, which is very flexible but a little tricky to set up if it's the first time you do so: http://www.iis.net/learn/extensions/url-rewrite-module/creating-rewrite-rules-for-the-url-rewrite-module
Url rewrite does operate at web server level, its powerful and does the job, but you may consider doing redirects at application level, depending on the technology you use, php/dotnet/aspx/mvc you have different tools. The advantage of doing it at application level is you can redirect dynamically, in other words use an algo to translate the old urls to the new ones using whatever information is stored in the application cache, database, and so on. While using IIS url rewrite you either statically redirect each old url to a the new url or you use regular expressions or wildcards to dynamically do so. In other words using url rewrite you have a little less flexibility.
-
Within IIS you use the IIS Manager. Here's a blog on page-by-page: http://www.proworks.com/blog/2010/02/11/adding-a-301-redirect-in-iis-for-individual-pages-with-non-aspx-extensions/ It's older but still applicable.
There's also software available like ISAPI_rewrite that can help with the process if you're migrating between Apache and Windows servers: http://www.helicontech.com/isapi_rewrite
The Windows doc on this: http://www.microsoft.com/technet/prodtechnol/WindowsServer2003/Library/IIS/6b855a7a-0884-4508-ba95-079f38c77017.mspx?mfr=true
-
Thank you very much. What file would manage page by page or directory by directory redirects on an IIS server?
-
It sounds like you're talking about CNAME vs a 301 redirect.
DNS can't really "redirect", at least in the SEO sense. A CNAME DNS entry acts as a pointer to another site. Sooner or later you have to have an A record to act as the "glue" between yourdomain.com and an IP where it can be accessed. The problem is that yourdomain.com is the end result. So even if it is just a CNAME for loadbalancer.abc.some.cloud.com, it will be seen as yourdomain.com by both the browser and any robots that visit.
A 301 redirect is an actual instruction (HTTP response code) from the web server (IIS in your case) to the end browser, saying that yourdomain.com really belongs over at anotherdomain.com. At that point your browser (or crawling robot) goes to the new domain. This is considered the proper SEO way to redirect anything, as it is known that robots respect the 301 response and most SEO benefits that the previous link had will flow through the 301 to your new page.
-
Hi
If I understand them correctly....
DNS change would be the location for site x is now at this IP. (IP Location Change)
IIS change would be server y is now server x. (Hardware Location Change)
In which case an IIS change would likely be preferred as you don't have to wait for the new DNS update to propagate.
Hope that helps,
Don
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
-
Is there a tool to see all redirects?
I'm thinking this is a silly question, but I've never had to deal with it I thought I'd ask. Ok is there a tool out there that will show all the redirects to a domain. I'm working on a project that I keep stumbling on urls that redirect to the site I'm studying. They don't show up in Open Site or ahrefs as linking domains, but they keep popping up on me. Any thoughts?
Technical SEO | | BCutrer0 -
301 Redirects in subfolders
Hi, we're making our site into a static site but I would like to transfer the Google juice. Most of the links and database exist on subfolders though. Could I simply do 301 redirects on the subfolders and retain the value or does it have to be on the full domain?
Technical SEO | | Therealmattyd0 -
Post vs page in Wordpress?
Hello there, I have a Wordpress site and would like to know if it is better to have 600 posts or 600 pages in terms of efficiency in the site. I would like to publish the content as pages, as I can have subapges,etc... and keep the path: www.website.com/page/subpage1... in terms of good SEO. This structure of using pages rahter than posts allow me to keep the path as stated above (with a category/post path I could not manage in this sense as a pile of articles is displayed although the path category/post in terms of SEO I understand would be good too). Thank you very much for your thoughts here as I would go for a page structure. Antonio
Technical SEO | | aalcocer20030 -
What would happen if 301 redirects were not in place
Good Morning from 14 degrees C sunny Wetherby UK 🙂 My question is please.... "When a new site is given a total makover ie old urls are re written to radically different ones I know if you dont set up 301 redirects the infamous 404 error page will rear its head. But i wonder if 301 redirects were not configured how long on average does it take google to index the new site and serp links finally point to the new site". Thanks in advance 🙂
Technical SEO | | Nightwing0 -
301 Redirect
The SEOmoz crawl campaign found some 404 errors in my Joomla site poker-brands.ca. So, I figured I would set up 301 redirects in my hosting account to make sure bots don't read that there is a page missing. For example: This link gave a 404 error in the crawl: http://www.poker-brands.ca/download-pokertracker-software/holdemmanager I redirected it to: http://www.poker-brands.ca/download-pt3-pokertracker-software/holdemmanager-hem-hm2 However, when I visit the first link it doesn't send me to the second link. Am I supposed to get forwarded to the second link now?
Technical SEO | | Uramark0 -
Singular vs plural in urls
In keyword research for an ecommerce site, I've found that widget, singular gets a lot more searches than widgets, plural AND is much less competitive. Is it better for SEO purposes to have the URLs (and matching title tags) in the catalog as /brass-widget.html, /steel-widget.html, etc., or /brass-widgets.html, etc.? I'm worried that a) searches for widgets will pass by the singular urls but not vice versa, and b) the singular form will strike visitors as bad grammar. Any advice?
Technical SEO | | AmericanOutlets0 -
Advises for redirects
I worked on a website since 2 years now (mainly link building). Now, I need to change the CMS and the hosting company of this website. In order to improve the SEO of this website, I decided to change the URL structure as well, see example here below: Actual situation: http://www.mywebsite.com
Technical SEO | | Tit
http://walla.mywebsite.com/
http://ortak.mywebsite.com/ http://www.mywebsite.com/de
http://walla.mywebsite.com/de
http://ortak.mywebsite.com/de http://www.mywebsite.com/es
http://walla.mywebsite.com/es
http://ortak.mywebsite.com/es Future situation: http://www.mywebsite.com
http://www.mywebsite.com/walla
http://www.mywebsite.com/ortak http://www.mywebsite.com/es
http://www.mywebsite.com/es/walla
http://www.mywebsite.com/es/ortak http://www.mywebsite.com/de
http://www.mywebsite.com/de/walla
http://www.mywebsite.com/de/ortak Since the hosting, the CMS and the URL’s will change, what you recommend me to do in order to keep a maximum of “link juice” to the pages!? How / Where to setup the 301 redirects?0 -
How do I redirect index.html to the root / ?
The site I've inherited had operated on index.html at one point, and now uses index.php for the home page, which goes to the / page. The index.html was lost in migrating server hosts. How do I redirect the index.html to the / page? I've tried different options that keep giving ending up with the same 404 error. I tried a redirect from index.html to index.php which ended in an infinite loop. Because the index.html no longer exists in the root, should I created it and then add a redirect to it? Can I avoid this by editing the .htaccess? Any help is appreciated, thanks in advance!
Technical SEO | | NetPicks0