301 redirect on Windows IIS. HELP! (Part 2)
-
My webmaster's trying (but struggling) to 301-redirect the non.www version of my site to the www version. He's following these instructions given to me in a response to an SEOMoz Private Question (ah, the good old days!).
So far he's 301-redirected the homepage but seems stuck on how to do the entire site. Any clues on what he should be doing?
-
He seems to have sorted it out now -- touch wood.
Thank you for your replies. -
Yeah and that's how you do it in IIS... Trust me I did this recently.
You create a site, say - domain.com (if you already have www.domain.com)
go into properties of domain.com and set the "A redirection to a URL" tab to www.domain.com, check permanent, and then it will send all requests to domain.com over to www.domain.com
Seriously that's the easiest way to do it I did these exact steps about 2 months ago and our site redirects perfectly, all pages. (setting the canonical version is setting a redirect in this scenario)
-
He's not trying to redirect a file or directory, Jesse, he's trying to create the rewrite rule that will set the canonical version (all www or all non-www) for all pages on the site.
P.
-
Those instructions are correct and should work for the whole site, Jeepster. Are you certain he's implementing them correctly? In particular you need to be absolutely certain that he's selected the Canonical Domain rule template, not a blank rule that he's writing himself.
Also, have you confirmed that the resulting code appears in the site's web.config file as indicated in the tutorial?
If all that's been confirmed, I'd check with your hosting provider to see why there might be issues getting these configs applied to your site. (assuming it's not an unmanaged dedicated or VPS sever.)
Paul
-
I'm not sure about all those fancy instructions in that link there... This is how I would do it, in a nutshell (correct me if I've missed a step as I do not have access to our IIS server at this time to retrace the steps, this is from memory)
-
Open IIS in Explorer and navigate to your site. Right click on the file or folder you wish to redirect and select Properties. (this will allow you to do it per directory, per page, etc)
-
In the file tab, select "A redirection to a URL" - (i may have missed a step here. i also know that depending on which IIS version you are running the location of this changes. I believe this is for IIS 7. Either way there will be an option somewhere in the called "A redirection to a URL")
-
Enter the url to redirect to
-
Determine whether you want to do the optional checkboxes (probably will want to check "A permanent redirection for this resource")
-
Click OK
Hope this helps!
-
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 it ok to redirect an old URL to new URL with anchor tag?
Ex. OLD URL - http://www.mysite.com/shoes/red/description NEW URL - http://www.mysite.com/shoes/red#desc Thanks in advance!
Web Design | | esiow20130 -
Increasing content, adding rich snippets... and losing tremendous amounts of organic traffic. Help!
I know dramatic losses in organic traffic is a common occurrence, but having looked through the archives I'm not sure that there's a recent case that replicates my situation. I've been working to increase the content on my company's website and to advise it on online marketing practices. To that end, in the past four months, I've created about 20% more pages — most of which are very high quality blog posts; adopted some rich snippets (though not all that I would like to see at this point); improved and increased internal links within the site; removed some "suspicious" pages as id'd by Moz that had a lot of links on it (although the content was actually genuine navigation); and I've also begun to guest blog. All of the blog content I've written has been connected to my G+ account, including most of the guest blogging. And... our organic traffic is preciptiously declining. Across the board. I'm befuddled. I can see no warnings (redirects &c) that would explain this. We haven't changed the site structure much — I think the most invasive thing we did was optimize our title tags! So no URL changes, nothing. Obviously, we're all questioning all the work I've done. It just seems like we've sunk SO much energy into "doing the right thing" to no effect (this site was slammed before for its shady backlink buying — though not from any direct penalty, just as a result of the Penguin update). We noticed traffic taking a particular plunge at the beginning of June. Can anyone offer insights? Very much appreciated.
Web Design | | Novos_Jay0 -
Dynamic pages -windows server
Hi all, Hope I get an answer on clients site which I believe is hosted on a windows shared server. The output of the site is something like this: http://www.domainname.com/catering-sub.asp?maincate_id=6&maincate_name=Barware I am looking to get a URL friendly output for the site - as far as my knowledge I believe Htaccess doesn't work on this type of hosting? thoughts? Thanks in advance
Web Design | | OnlineAssetPartners0 -
301 Redirect from Old Domain to New Domain
I am building a new website and I plan to 301 Redirect my Old Domain (olddomain.com) to a brand new Domain (newdomain.com) in the upcoming months. To do this I was planning to update the htaccess file on both the old and new domains. The htaccess file on the old domain would look to 301 redirect all pages on the old domain to the new domain. The htaccess file on the new domain would detail any specific URL redirects I want to implement (ie. olddomain.com/EXAMPLE/TEST will redirect to newdomain/TEST) - this will ensure link equity is retained and bounce rates are kept at a lower level. Does this sound like the right approach? Also, what do I need to do with the old domain going forward? Do I need to keep this forever in order for the 301 redirect to work or can I eventually just forward the domain to the new one permanently?
Web Design | | DHS_SH0 -
What is the code to 301 http to www in htaccess file on unix server
i want to 301 my http home page to www on a linux server and all my other redirects are set up similar to this in my htaccess file: redirect 301 /example-page.html http://www.example-page.html how do I 301 redirect: http://example.com to http://www.example.com I've tried all kinds of code recommended for an htaccess file on a linux server and nothing seems to work. Thanks for the help mozzers! Ron
Web Design | | Ron100 -
Home page redirect - will this cause an SEO problem
Hello, We are using Wordpress to build a wiki site. The wiki plugin we're using (Wordpress Wiki lite) can only be set up on an internal page like nlpwiki(dot)org/wiki Can we redirect the home page to the /wiki subdirectory and use nlpwiki(dot)org/wiki as our home page? I've never done that, just wondering if it will be indexed as the home page or if there are any connonical issues. Thanks!
Web Design | | BobGW0 -
Please help. can't change widgets in wordpress
hey everyone, i am having a weird problem. for some reason. all of a sudden (without me changing ANYTHING) my widget page in the admin dashboard will not let me edit anything what i mean is, i login, go to the widgets page, and then the dropdown menus that you drag widgets into will not let me expand to drop widgets in them. was there a wordpress update i missed? who should i contact? what if i delete the theme and re-install. will i have to change ALL the settings back again?
Web Design | | TylerAbernethy0 -
Redirecting 301 Redirects -- Will Search Engines Notice?
Hello Mozzers, We're currently evaluating a client site where the previous web developer redesigned the site and got lazy, 301 redirecting hundreds of pages to the home page instead of to their respective new URLs. Ugh. In any case, we will probably fix this for the sake of implementing best practices. But I am curious how search engines treat 301'd URLs, as they are supposed to be permanent redirects. Will search crawlers ever visit the old URLs again to find that we've re-redirected them? Or have they written them off as moved to the home page for good, meaning that there's no way to direct the authority of the previous URLs to their rightful targets? Thanks!
Web Design | | SEOTeamSF0