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
-
How to get a large number of urls out of Google's Index when there are no pages to noindex tag?
Hi, I'm working with a site that has created a large group of urls (150,000) that have crept into Google's index. If these urls actually existed as pages, which they don't, I'd just noindex tag them and over time the number would drift down. The thing is, they created them through a complicated internal linking arrangement that adds affiliate code to the links and forwards them to the affiliate. GoogleBot would crawl a link that looks like it's to the client's same domain and wind up on Amazon or somewhere else with some affiiiate code. GoogleBot would then grab the original link on the clients domain and index it... even though the page served is on Amazon or somewhere else. Ergo, I don't have a page to noindex tag. I have to get this 150K block of cruft out of Google's index, but without actual pages to noindex tag, it's a bit of a puzzler. Any ideas? Thanks! Best... Michael P.S., All 150K urls seem to share the same url pattern... exmpledomain.com/item/... so /item/ is common to all of them, if that helps.
Intermediate & Advanced SEO | | 945010 -
Will these 301's get me penalized?
Hey everyone, We're redesigning parts of our site and I have a tricky question that I was hoping to get some sound advice about. We have a blog (magazine) with subcategory pages that are quite thin. We are going to restructure the blog (magazine) and feature different concert and have new subcategories. So we are trying to decide where to redirect the existing subcategory pages, e.g. Entertainment, Music, Sports, etc. www.charged.fm/magazine Our new ticket category pages ( Concert Tickets, NY Yankees Tickets, OKC Thunder Tickets, etc) are going to feature a tab called 'Latest News' where we are thinking of 301 redirecting the old magazine subcategory pages. So Sports News from the blog would 301 to Sports Tickets (# Latest News tab). See screenshot below for example. So my question is: Will this look bad in the eyes of the GOOG? Are these closely related enough to redirect? Are there any blatant pitfalls that I'm not seeing? It seems like a win/win because we are making a rich Performer page with News, Bio, Tickets and Schedule and getting to reallocate the link juice that was being wasted in an pretty much useless page that was allowed to become to powerful. Gotta keep those pages in check! Thoughts appreciated. Luke Cn6HPpH.jpg
Intermediate & Advanced SEO | | keL.A.xT.o0 -
How should I handle URL's created by an internal search engine?
Hi, I'm aware that internal search result URL's (www.example.co.uk/catalogsearch/result/?q=searchterm) should ideally be blocked using the robots.txt file. Unfortunately the damage has already been done and a large number of internal search result URL's have already been created and indexed by Google. I have double checked and these pages only account for approximately 1.5% of traffic per month. Is there a way I can remove the internal search URL's that have already been indexed and then stop this from happening in the future, I presume the last part would be to disallow /catalogsearch/ in the robots.txt file. Thanks
Intermediate & Advanced SEO | | GrappleAgency0 -
301 redirect w/ dynamic pages to static
I am trying to redirect old dynamically created pages to a new static one (single page). However, when I implement the redirects, it still uses part of the old dynamic url. For instance... dynamic.php?var=example1 dynamic.php?var=example2 dynamic.php?var=example3 should all redirect to: static.html. However, they are redirecting to: static.html?var=example1 static.html?var=example2 static.html?var=example3 The page is resolving fine, but I don't want google to misinterpret the new static page as numerous page with dup content. I tried this in PHP on the dynamic.php page as follows, but it the problem above persisted: header('HTTP/1.1 301 Moved Permanently');
Intermediate & Advanced SEO | | TheDude
header('Location: http://www.mysite.com/static.html'); I tried doing it in my .htaccess file as follows, but the problem persisted: redirect 301 /info/tool_stimulus.php?var=example1 http://www.mysite.com/static.html
redirect 301 /dynamic.php?var=example2 http://www.mysite.com/static.html Can anyone solve this in PHP or w/ htaccess? Help!!! 🙂0 -
How to decide on which site to 301 redirect
Hi there I'd like your opinions please! My client currently has their website at not-very-good-url.it which has a really good link profile they also have duplicate sites at: much-better-brand-name-url.it and much-better-brand-name-url.com but both these other sites have only a handful of links in. How important do you think a better brand url is? And therefore do you think it would be better to 301 to a better brand URL and take the risk that the link profile will get hit? Or leave the main site where it is and 301 the other two to it? Many thanks
Intermediate & Advanced SEO | | Chammy0 -
Multiple Locations Google Places (URL's)?
I'm managing a restaurant chain with 10 locations. Can they all share the home page url of the corporate site in Google Places or is it better to link each location url separately? Meaning can I use www.company.com for all locations in Google places for all locations or is it better to go with www.company.com/location.html for each location. The page authority of the home page is 60 while individual location pages the page authority is in the 20's. Hope this makes sense. Thanks
Intermediate & Advanced SEO | | YMD
Gary0 -
Should you replace the url on a damaged page and 301 to it ?
Hi, We have a couple of pages which have been damaged due to an SEO person we hired creating a stupid amount of bookmarks and generally poor links. I've tried to get the links removed where I can but on most of these blogging sites there is no contact webmaster etc so I am struggling. Panda update as also affected traffic by about 35%. My question is , should I consider creating new urls for the "damaged " pages and then doing 301 redirects to them from the damaged page to the new page. Then start to build up good links to the new page whilst google should de-index the old pages over a couple of months ?. Just at my witts end how to get rid of these blogging rubbish etc etc. Thanks Sarah.
Intermediate & Advanced SEO | | SarahCollins0 -
How To 301 Redirect .html pages
I need to redirect a page/URL that is purely .html to a new location. I don't know how to do this. All the redirects I can find are for server side code pages .php/.aspx etc. From my understanding I can't put a server side redirect in a .html file. I am hosting on a microsoft server, however the new page I am redirecting to is .php. I am running some WordPress (.php) files on the server. I need to make it redirect before the old page loads so visitors don't start reading something that is about to get redirected Can someone please help me?
Intermediate & Advanced SEO | | MyNet0