23.11.2009 SEO, search engine optimization, server side No Comments

Redirecting Web Pages With 301 Redirects

Use 301 Redirects for Rank Preservation and Efficiency

301 Redirects are the most effective and recommended method for moving and redirecting web pages. 301 Redirects tell the search engines the page or website has been permanently moved. Over time, the search engines will update their index to reflect changes and you should see traffic, back links and PageRank flow to the new location. However, if you do not use some sort of redirect, your website might lose search engine rank and visitors.

301 Redirects are typically easy to implement and will help preserve your website’s rankings when moving a page or domain. It is highly recommended that you implement one of the following redirect methods if you want to maintain your search rankings and provide visitors easy access to your new information.

Whenever a website or page has been moved to a new location, it is very important that visitors and the search engines are redirected to the new page or site location. Depending on your server, below are some server descriptions and ways you can implement a 301 redirect depending on your server type and configuration.


Apache Web Server: .htaccess file

The Apache Web server provides a full range of Web server features, including CGI, SSL, and virtual domains. Apache also supports plug-in modules for extensibility. Apache is reliable, free, and relatively easy to configure.

Apache .htaccess files allows you to override the Web server configuration on a directory/hierarchial basis. .htacess files are important in the creation of proper 301 redirects.

Single Page Redirect:

Redirect 301 /old/url /new/url</code>

or

Redirect Permanent /old/ur /new/url

Canonical Hostname Redirect (non-www to www):

This solution will redirect any page requested via a non-www domain to the same URL with the www domain, and as such it can be placed in the DocumentRoot of your site and will be enforced globally:

RewriteEngine On
RewriteCond %{HTTP_HOST} ^domain\.com
RewriteRule (.*) http://www.domain.com/$1 [R=301,L]

Another Example for .htaccess Redirects:

Redirect Old domain to New domain (htaccess redirect)

  1. Create a simple text file using Notepad and name it .htaccess.
  2. Paste the code below into the newly created file.

The .htaccess file needs to be placed in the root directory of your old website (i.e the same directory where your index file is placed). Use ftp to do this.

Options +FollowSymLinks
RewriteEngine on
RewriteRule (.*) http://www.newdomain.com/$1 [R=301,L]

Make sure you REPLACE www.newdomain.com in the above code with your actual domain name.

Additionally, I would suggest that you contact every back linking site and ask them to modify their back link to point to your new website.

Note* This .htaccess method of redirection works ONLY on Linux servers having the Apache Mod-Rewrite moduled enabled.

Redirect to www (htaccess redirect)

  1. Create a simple text file using Notepad and name it .htaccess
  2. Paste the code below into the newly created file.

The .htaccess file needs to be placed in the root directory of your old website (i.e the same directory where your index file is placed). Use ftp to do this.

Options +FollowSymlinks
RewriteEngine on
rewritecond %{http_host} ^domain.com [nc]
rewriterule ^(.*)$ http://www.domain.com/$1 [r=301,nc]

Make sure you REPLACE domain.com and www.newdomain.com with your actual domain name.

Note* This .htaccess method of redirection works ONLY on Linux servers having the Apache Mod-Rewrite moduled enabled.


Microsoft IIS Web Server

Note: these instructions require administrative access to IIS. If you do not have this access (e.g., if you have a shared hosting account on a Windows server), you should use one of the server-side scripting methods such as ASP or PHP given further below.

Single Page Redirect:

  1. Open Internet Services Manager and right-click on the file or folder you wish to redirect.
  2. Select the radio button “a redirection to a URL”.
  3. Enter the desitnation page for the redirect.
  4. Check “The exact url entered above” and the “A permanent redirection for this resource”.
  5. Hit “Apply”.

Active Server Pages (ASP)

Active Server Pages or Classic ASP, as it is more commonly known, is a technology that enables you to make dynamic and interactive web pages.

ASP uses server-side scripting to dynamically produce web pages that are not affected by the type of browser the web site visitor is using.

Single .asp Page Redirect:

<%
Response.Status="301 Moved Permanently"
Response.AddHeader='Location','http://www.new-url.com/'
%>

Canonical Hostname Redirect (non-www to www):
This code should be inserted into a global include file or any ASP script which is executed for every page on the site before the page output begins:

<%
If InStr(Request.ServerVariables("SERVER_NAME"),"www") = 0 Then
	Response.Status="301 Moved Permanently"
	Response.AddHeader "Location","http://www."
		& Request.ServerVariables("HTTP_HOST")
		& Request.ServerVariables("REQUEST_URI")
	Response.End
End if
%>

PHP 4 and PHP 5

PHP (recursive acronym for PHP: Hypertext Preprocessor) is a widely-used open source general-purpose scripting language that is especially suited for web development and can be embedded into HTML.

Single Page .php Page Redirect:

<php
header('HTTP/1.1 301 Moved Permanently');
header('Location: http://www.new-url.com/');
?>

ColdFusion

ColdFusion is a programming language based on standard HTML (Hyper Text Markup Language) that is used to write dynamic webpages. It lets you create pages on the fly that differ depending on user input, database lookups, time of day or whatever other criteria you dream up!
Single Coldfusion Page Redirect:

<cfheader statuscode="301" statustext="Moved permanently">
<cfheader name="Location" value="http://www.new-url.com/">

Java (JSP) Redirect

JavaServer Pages (JSP) technology provides a simplified, fast way to create web pages that display dynamically-generated content. The JSP specification, developed through an industry-wide initiative led by Sun Microsystems, defines the interaction between the server and the JSP page, and describes the format and syntax of the page.

<%
response.setStatus(301);
response.setHeader( "Location", "http://www.new-url.com/" );
response.setHeader( "Connection", "close" );
%>

CGI PERL Redirect

CGI.pm is a stable, complete and mature solution for processing and preparing HTTP requests and responses. Major features including processing form submissions, file uploads, reading and writing cookies, query string generation and manipulation, and processing and preparing HTTP headers. Some HTML generation utilities are included as well.

$q = new CGI;
print $q->redirect("http://www.new-url.com/");

Ruby on Rails Redirect

Ruby on Rails, often shortened to Rails or RoR, is an open source web application framework for the Ruby programming language. It is intended to be used with an Agile development methodology that is used by web developers for rapid development.

def old_action
headers["Status"] = "301 Moved Permanently"
redirect_to "http://www.new-url.com/"
end

25.02.2009 facebook development, google development, social media mashups, wordpress plugins No Comments

Facebook Marketing and Monetizing

Ever wonder how Facebook makes money?

We’ve probably all asked that question at one time or another. The short and simple answer – advertising. Facebook charges advertisers and marketers to run ads on the Facebook platform and within their marketing landscape using cost per click and CPM metrics . That’s one obvious answer. Some sources indicate though, Facebook struggles monetizing the entire Facebook platform. In other words, they have not figured out how to fully capitalize on the sheer volume of users. After all it’s free. Or is it?

I’ve read several articles about Facebook conspiracies [like this one] and how Facebook basically farms information about all of us for marketing research purposes. Such a huge demographic of people to capture marketing and other data from is certainly valuable. And quite honestly, it’s a scary thought, and our private information isn’t free! I will let you make the call on that one. You can check out basic statistics and information about Facebook here as the Facebook company discloses it.

How businesses can leverage Facebook

Go where the people are

The old “if you build they will come” phrase doesn’t work so well in online marketing. You have to reach people where they are. Facebook offers several ways to advertise, build company pages, create applications and more. If you are a business owner and you want to increase your online reach, I recommend creating a company profile and build pages.

Generate an audience

Build a following, get friends, family, colleagues and who ever to join your network and become a fan. Once you have a profile you can create industry specific pages of your choice. Note: pages are different from profiles!

Run sponsored ads

In addition to creating business pages you can run sponsored ads and manage them right within Facebook. You can do that by going here.

The payoff

Like many Internet marketing techniques leveraging and marketing on Facebook takes time, research, and patience. Monitor results, create interactive features, get the users involved and create interest. Facebook page actually rank in the search results so create with keywords in mind. You will increase your reach and create yet another way to drive traffic to your website or capture conversions.

Arbor Search Marketing is Based in Colorado and can help your business marketing Facebook and dozens of Social Media sites. Contact us today for a free consultation!

18.10.2008 google No Comments

The Latest Search Engine ‘Cuil’

The Newest & Latest Search Engine To Hit The Web!

“Cuil is an old Irish word for knowledge. For knowledge, ask Cuil.”

Cuil... a very interesting launch of the latest search engine. So far I have not heard to much ‘buzz’ about Cuil? Most  of the founders of Cuil were former Google employees which to me is also interesting. Cuil claims their search engine is the largest out there in terms of pages indexed. Somewhere around 120+ Billion! What’s interesting to me is Cuil seems to have came out of no where and now has worlds largest index of web pages?

Cuil Features

The engine has an interesting way of of categorizing search performed also. Which I think is going to become more and more popular among search engines because it adds the visual element to the search results. This is appealing to the user and it’s great for companies to display their logo and brand right in the search results.

Here is a capture of the search results for the query ‘WordPress’

Notice a longer description and the thumbnail. Very unique because people tend to be very visually motivated with their clicks. I think this factor has huge implications for search and search marketing. I think it’s a good step in the direction of better branding and exposure opportunities. Better polish and shine your brand!

Capture of “Explore by Category Feature”

This feature breaks search results down by relevent categories which allows users to refine their search very easily. Notice the categories it displayed using the query ‘wordpress.’

Safe Search Filter

Cuil also has an easily accessable ‘filtering option’ that allows one to filter unwanted content right from the the search window.

Tabs

Cuil also adds a tab section at the top of your search panel that makes clarifying your search results easier.

Navigation Suggestion

This feature displays a drop down menu of relevent results as you enter your defined search terms. Just another helpful way to speed up search.

…Overall I think Cuil may be on to something with it’s features. Time and the amount of users will tell just how good the “worlds largest search engine” really is.

What do you think of Cuil?

Leave a comment!

Arbor Search Marketing

Vision…Research…Results

Enspire's Social Media Follow Me Iconenspire twitter profile Enspire's Facebook Profile Enspire's YouTube Profile Enspire's LinkedIn Profile Enspire's Delicious Profile