Can some brilliant mozzer out there teach a moron/newbie like me how to 301 redirect several URL's I have?
-
Okay -
I am a supermodel. I look pretty. My legs are amazing. My cheekbones are high. But when it comes to 301 redirects I am the ugliest supermodel on the block.
Crap, here is the truth: I am not even a supermodel. I am just a middle-aged, goofy looking dude who is a newbie to fixing websites.
I have inherited several sites from a friend and I have been helping by creating solid contextual links internally and externally for a while. But, when Roger the wondrous SEOMoz robot talks to me, he says, "oops, it looks like your foolish freak self has a site that has both a www. and a non-www, which can create competition for yourself."
What do I do when he says that?
I just whisper a "thank-you" but gently press the skip this step button and go on with my life because I do not know how to make my non-www.'s redirect into the www. sites...
Now, I have sort of asked this question on the site before, but I was answered by someone who does not understand my level of ignorance.
any use of the word canonical or just put this lfwjkshj.htp/php inside the left ear of your mom, does not tell me anything
so, is there any willing and kind soul who can walk me through redirecting several of my sites to their proper home - kind of like Carl Chubbs Weathers did for Happy Gilmore in that Academy Award winning classic?
Thanks for the help in advance
best,
dumbhead
-
THe logic i like to follow, is make sure all domain names point to the correct version. to make that plain rather than, if B then redirect to A, you should say if Not A then redirect to A
For linux servers put this in your htaccess
RewriteCond %{HTTP_HOST} !^www.mydomain.com$
RewriteRule (.*) "http://www.mydomain.com/$1" [R=301,L]for a windows server I have a tutorial here
http://thatsit.com.au/seo/tutorials/how-to-fix-canonical-domain-name-issues
-
I'm downloading the manuals for CMS made Easy right now, but they're taking a bit of time to download. If you use the FTP login information you have to make an FTP connection to your site, you should be able to see (you may have to enable viewing of hidden files) a file called .htaccess (yes, there's a period in front of the file). You can download that to your computer, open it in a text editor (like notepad), make the edits that eyepaq mentions, then upload it again. I'd first make a copy of the file in case you screw something up.
When the manuals download, I'll look through them to see if there's a setting within their program that makes this easier for you.
-
To be honest I would't spend to much time on this. I don't see it as a huge priority. It's nice to solve it but if it requaiers hiring someone or getting the extra mile ... is just not worth it.
The process is easy for someone with some technical background.
Google is kind of smart in understanding that your non www version is not really duplicate content with your www version so I would let it slide if it's to hard to get it done.
If you do want to change it, CMS made easy dosen't support the htaccess management via the web interface so it needs to be done the "hard way" and that means you need to have FTP data to your domain ( domains), an FTP client so you can login, download the htaccess file, edit it and upload it again. If all that is over the tech abilities that's fine - it dosen't mean you should get another job. It's all technical.
Some easy ways to get this done: find someone you trust with some tech skills to do that - it take sless the 10 min or get a freelancer via elance or whatever to do that (but make sure they have some really good feedbacks from past clients are you are about to send them full access to your site)
Dose it make sense ?
-
Thanks a lot for requesting clarification - These sites are built on CMS made easy.
One example is:
http://www.affordablestoragelubbock.com and http://affordablestoragelubbock.com
another is
http://www.aplussuperstorage.com and http://aplussuperstorage.com
I can give you like five others, but it is pretty much the same issue
many many thanks for what you can offer
and I am not sure whether or not I have access to the htaccess file - why?
because I am a dumbbell who cannot be trusted with much more than an x-box controller
-
Howdy!
I understand that some of this stuff can sound like gibberish if you don't understand what's going on. If you can tell us your site's URL that would help us out. If not, can you let us know if you're using something like Wordpress or Joomla? We can tailor our advice to you a bit better if we know more about your site. Just like it's easier to give instructions about changing your oil if we know what kind of car you have and we can tell you exactly what to look for, rather than giving more general information.
Keri
-
I'm no brilliant mozzer but hopfully can still help.
If you want to redirect all non-www requests to your site to the www version, all you need to do is add the following code to your .htaccess file:
`RewriteEngine On RewriteCond %{HTTP_HOST} !^www\. RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L]`
This will redirect any requests to http://my-domain.com to http://www.my-domain.com.
That's of course if you have htaccess. if you are using a windows based platform the approach is a little different.
What is htaccess ?
http://www.htaccess-guide.com/
In short - a file on your root domain that you can dl edit with text pad if needed and upload back in the same place.
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
-
Mass 301 redirect in htaccess
I use ScreamingFrog to generate sitemaps for my Magento 2 multistore, but I recently noticed two issues. Each category/page has two URLs. One with / and the end and one without. Every product has two URLs. One with /product-name and the other /shop/product-name. The URLs are canonicalised, but this is still a problem and I'm not sure exactly how to execute this in the htaccess file. So I need to: Remove all URLs without the / at the end and redirect them all to the URL with / at the end. Or vice versa. 301 redirect every single product (there are over 400) from shop/product-name to /product-name. How do I do this en mass in the htaccess file?
Intermediate & Advanced SEO | | moon-boots0 -
Can a duplicate page referencing the original page on another domain in another country using the 'canonical link' still get indexed locally?
Hi I wonder if anyone could help me on a canonical link query/indexing issue. I have given an overview, intended solution and question below. Any advice on this query will be much appreciated. Overview: I have a client who has a .com domain that includes blog content intended for the US market using the correct lang tags. The client also has a .co.uk site without a blog but looking at creating one. As the target keywords and content are relevant across both UK and US markets and not to duplicate work the client has asked would it be worthwhile centralising the blog or provide any other efficient blog site structure recommendations. Suggested solution: As the domain authority (DA) on the .com/.co.uk sites are in the 60+ it would risky moving domains/subdomain at this stage and would be a waste not to utilise the DAs that have built up on both sites. I have suggested they keep both sites and share the same content between them using a content curated WP plugin and using the 'canonical link' to reference the original source (US or UK) - so not to get duplicate content issues. My question: Let's say I'm a potential customer in the UK and i'm searching using a keyword phrase that the content that answers my query is on both the UK and US site although the US content is the original source.
Intermediate & Advanced SEO | | JonRayner
Will the US or UK version blog appear in UK SERPs? My gut is the UK blog will as Google will try and serve me the most appropriate version of the content and as I'm in the UK it will be this version, even though I have identified the US source using the canonical link?2 -
How necessary is it to disavow links in 2017? Doesn't Google's algorithm take care of determining what it will count or not?
Hi All, So this is a obvious question now. We can see sudden fall or rise of rankings; heavy fluctuations. New backlinks are contributing enough. Google claims it'll take care of any low quality backlinks without passing pagerank to website. Other end we can many scenarios where websites improved ranking and out of penalty using disavow tool. Google's statement and Disavow tool, both are opposite concepts. So when some unknown low quality backlinks are pointing and been increasing to a website? What's the ideal measure to be taken?
Intermediate & Advanced SEO | | vtmoz0 -
301 Redirects... Redirect all content at once or in increments?
Hello, I have been reading a lot about site migration and 301s and sometimes get confused with conflicting suggestions from different sources... So, in a site migration. Should I 301 redirect all old URLs to the news at once or little by little? I've see this Google handout that suggests doing it all at once (minute 13)
Intermediate & Advanced SEO | | Koki.Mourao
https://plus.google.com/u/0/events/cfco632lor7bl55j3tg1g8332l0 But also have read the opposite in other forums...0 -
HTML5: Changing 'section' content to be 'main' for better SEO relevance?
We received an HTML5 recommendation that we should change onpage text copy contained in 'section" to be listed in 'main' instead, because this is supposedly better for SEO. We're questioning the need to ask developers spend time on this purely for a perceived SEO benefit. Sure, maybe content in 'footer' may be seen as less relevant, but calling out 'section' as having less relevance than 'main'? Yes, it's true that engines evaluate where onpage content is located, but this level of granular focus seems unnecessary. That being said, more than happy to be corrected if there is actually a benefit. On a side note, 'main' isn't supported by older versions of IE and could cause browser incompatibilities (http://caniuse.com/#feat=html5semantic). Would love to hear others' feedback about this - thanks! 🙂
Intermediate & Advanced SEO | | mirabile0 -
Multilingual Site and 301 redirection
Hey there awesome people of Moz I have this site that has many languages in it. The main language is English and my developer did the following www.example.com ( is the main site ) which redirects with a 301 to www.example.com/en if your geo location is supported by our languages then you will automatically be redirected to whatever language you have in your country but does the first language with is english have to 301 redirect to www.example.com/en ? I thought that the right way is to just leave /en at the root file. Thanks in advance
Intermediate & Advanced SEO | | Angelos_Savvaidis0 -
Web developer won't 301 redirect to my new website....what can I do?
I want to come away from our third party web developer and use a new website with different web developers, however the web developer wont 301 redirect the old url's to the new ones. Is he required to do this by law? Is there away of doing the 301 redirects without him? Any advice would be much appreciated. Many thanks,Tom
Intermediate & Advanced SEO | | CoGri0 -
Adding index.php at the end of the url effect it's rankings
I have just had my site updated and we have put index.php at the end of all the urls. Not long after the sites rankings dropped. Checking the backlinks, they all go to (example) http://www.website.com and not http://www.website.com/index.php. So could this change have effected rankings even though it redirects to the new url?
Intermediate & Advanced SEO | | authoritysitebuilder0