301 redirect

A 301 redirect, or permanent redirect is generally the best way of redirecting pages without offending the search engines. 301 redirects need to be done by your web server (eg Apache, IIS, etc) or by a server side language such as PHP, .NET, Cold fusion etc.

Alternative domains not in Google

A customer has just brought to my attention a problem that hadn't occured to me. It's to do with all those other domain names you own and are 301ing to the main site. Problem: You have www.domainname.com and it's appearing in Google searches for "www.domainname.com" like it should. You have www.domain-name.com 301ing to...
> articles/alternative-domains/

PHP redirect function (301 / 302)

I'm often asked how to do 301 redirects in PHP. It's not hard, but it's a pain having to remember the exact syntax every time. Here's a little function I wrote for Jojo CMS for making redirects easy. Usage Add one line of code whenever you need to do a redirect. 301 redirects... redirect('http://www.domain.com'); or...
> articles/php-redirect-function/

www or non-www

The local PHP users group has been having an interesting discussion on the use of www vs non-www in a domain name. The discussion has raised some interesting points. Everybody agrees that both should work - it's immensely frustrating when you type in "domain.com" and you get an error message. There are still a number of big websites...
> articles/www-or-non-www/

That trailing slash DOES matter

I have been all bitter and twisted the past few weeks about Google putting some of my pages into the supplemental index. And not just my rubbish pages, some of my best content has gone supplemental. After chewing on the problem for a couple of weeks, I have it figured out. It's the trailing slash on my URLs, or lack thereof. As odd as this...
> articles/68/that-trailing-slash-does-matter/

Why don't people use 301 redirects?

I have just completely revamped the NZ Coastguard boating education website tonight. When I say "revamped", I mean make substantial changes to the backend with virtually no changes to how it looks - if anyone notices anything new, I'll be surprised. Clients aren't going to notice the new nice URLs, the new CSS based layout, the fact...
> articles/67/why-dont-people-use-301-redirects/

Ferrit SEO their site properly - sort of?

I have been in the process of writing a SEO article all about www.ferrit.co.nz - a multi million dollar website with more SEO and web development mistakes than a drunk illiterate kid with Microsoft Frontpage could make. My article covered what you don't want your website to look like after spending a reported NZ$15 million on it. It's...
> articles/58/ferrit-seo-their-site-properly-sort-of/

Duplicate Content

Duplicate content occurs when blocks of text are published on different websites. An awareness of how duplicate content works in Google should be an important part of your SEO strategy. This morning I ran into a very interesting case of duplicate content on a site, where SEO efforts were actually working against the site, which I will explain....
> articles/43/duplicate-content/

PHP 301 Redirects

The preferred way of redirecting a page that has moved is by a 301 redirect. In PHP, 301 redirects are not the default (a 302 redirect is the default). Whenever you move a visitor to a new location, you should use the PHP 301 redirect, which involves one extra line of code. In PHP, a 302 redirect is done as follows... header('location:...
> articles/33/php-301-redirects/

Redirects - the good, the bad and the ugly

Redirects are an important part of a well maintained site. As pages are deleted or moved, it's common courtesy to sent the visitor to the new page, or at least apologise for the inconvenience. Types of redirect Redirects come in several flavours. Redirects can be done by the server, or by the client (browser). Generally speaking, a server...
> articles/6/redirects-the-good-the-bad-and-the-ugly/

Preventing Duplicate Content

Duplicate content is a problem with many websites, and most webmasters don't realise they are doing anything wrong. Most search engines want to provide relevant results for their users, it's how Google got successful. If the search engine was to return 5 identical pages on the same page of the search results, it's not likely to be useful to...
> articles/3/preventing-duplicate-content/

Tags related to 301 redirect