myMenu v3.0

by Jonathan on May 20, 2013

We’re very close to releasing a huge update to the very popular myMenu stack, adding the two most requested features we’ve gotten for this stack to help make your web design life easier:

  1. Responsive layout support
  2. Custom menu items with their own sub-pages

But rather than explain all this in blog post, why don’t you see it in action? ;-)

 

 

Keep an eye on your inbox, as we’ll be sending out an email when the update goes live. If you’re not already a NimbleHost member, you can join our mailing list on this page.

Please leave your comments and questions below!

{ 0 comments }

I’ve got cruftless links. Now what?

by Jonathan on March 28, 2013

This is the (long awaited) follow-up article to my post about how cruftless links are better for SEO. If you haven’t read that post be sure to do so first, as this article will make more sense at that point.

So now that we’ve established how awesome cruftless links are, many of you have already switched over to them; and the next question I always get is how to make sure the old links are redirected to the new. This is something we need to address for a number of reasons:

  • Chances are that search engines have your old links saved to their index, and this allows us to make sure they see and index the new ones. It’s possible your ranking on SERPs (search engine results page) could drop if this isn’t done.
  • It makes the transition painless for your website visitors. Nobody wants to visit your site and see a 404 Not Found error.

For most people the best way to tackle this problem is by using a .htaccess file and specifying something called “rewrite rules”. If your web hosting uses Windows and IIS, then you can do (essentially) the same thing with what’s called a web.config file, but I won’t be covering that in this article.

Before we get started you’ll need to make sure that your hosting provider meets the requirements for what we’re about to do. I have a list of compatible hosting companies that we know support this, but the list isn’t exhaustive. Even if your hosting company isn’t listed that doesn’t mean this won’t work, only that you’ll need to confirm the following:

  • Your hosting uses the Apache web server (most companies do)
  • The mod_rewrite module for Apache is installed and enabled (again, most companies already do this)

Depending on the configuration your hosting company uses, you may need to enable the .htaccess file in your hosting control center. Also, be sure that you have FTP access to your hosting account, as you’ll need to edit/upload the .htaccess file directly to your hosting account, in the same folder where your homepage is located. If you already have a .htaccess file in that location, don’t delete or replace it. Instead, open it in a good text editor, and add your code to the end of that file. With all that said, let’s get started.

Let’s say your old link looked like this:

http://bigfootsupersite.com/photos.html

And you’ve updated that to a shiny, new cruftless link, like so:

http://bigfootsupersite.com/photos

Obviously the goal is to make sure that anyone who tries to visit the old link is redirected to the new link. We can do this in the .htaccess file using this bit of code:

RewriteEngine On
Redirect 301 /photos.html http://bigfootsupersite.com/photos

Looks fairly simple, and I’m guessing you can read this and make out what is going on. Let’s walk through the code line by line.

The RewriteEngine On line does exactly what you might expect. It turns on the engine you’ll be using to redirect visitors to the page you want them to see. We need to make sure this is turned on first, before starting our redirect code.

The next line is where the magic happens. The Redirect command is quite simple – you’re telling the server where your website is located that you want to redirect something. But we also need to provide some additional information – more specifically, what type of redirect this is, the old page that people will be trying to access, and the new page where you want them to be redirected.

The 301 number is specific type of redirect, called a “permanent” redirect. This tells web browsers and the search engines crawling your site the old page has been permanently replaced with the new one. By using this “permanent” redirect, search engines will automatically update their indexes to use the new cruftless link.

After that we have the /photos.html portion. This is the old page that people (and search engines) will be trying to access.

Finally we have the http://bigfootsupersite.com/photos portion. You’ll recognize this as our new cruftless link, and it’s where people who try to access the old page will be redirected.

If you have more than one page to redirect, you can add as many Redirect lines as you need. Here is an extended example, based on the same code above:

RewriteEngine On
Redirect 301 /photos.html http://bigfootsupersite.com/photos
Redirect 301 /reported_sitings.html http://bigfootsupersite.com/sitings
Redirect 301 /contact/contact.php http://bigfootsupersite.com/contact

Note that we only need to use the RewriteEngine On line once. The last line also shows how to target sub-pages in your site. As a reminder, the .htaccess file should be placed in the same location as your homepage. If there’s already a .htaccess in that location, just open the file and add your code to the end.

Of course, be sure to test our your redirects when your done, to make sure they are working correctly.

EDIT: As requested in the comments, here is how to redirect any 404 Not Found errors to the homepage. This will work anytime a visitor tries to access a page or file that can’t be found on your website, and can be done in the .htaccess file like so:

ErrorDocument 404 http://bigfootsupersite.com

This is a good fallback method if you don’t remember all the old URLs and want to make sure visitors can still navigate your site even if they try to access a page that doesn’t exists anymore.

Before wrapping up this article I want to make sure we cover the importance of a good text editor. You don’t want to be using a program like TextEdit or Notepad, as they oftentimes will add extra data to the file, or impose a certain file extension (like, .txt, .rtf, etc.). Instead, be sure you are using a text editor designed to work with code. This is easy to do, and free! For Mac users there is the free TextWrangler from Bare Bones Software. For Windows users I’d suggest the free Notepad++ (not to be confused with the regular Notepad app included with Windows by default).

Another note specifically for Mac users. By default Mac OS X hides files that start with a period, such as .htaccess files. As such I recommend that you create the file on your hosting account directly. You can then right-click on the .htaccess file in your FTP program, and from the contextual menu select to edit the file in your text editor of choice. The nice thing about this approach is that your FTP client should automatically upload the file when you save your changes. Easy!

Hope this helps you make the transition to cruftless links. Make sure to leave your feedback in the comments below.

{ 10 comments }

Why Cruftless Links Are Better for SEO

November 8, 2012

A number of customers have been contacting us recently with concerns about changing the file names for their RapidWeaver pages. The reason for this is because we have two different plugins (Mobilize and RapidSearch Pro) that require PHP, and as such, require a .php file extension to be used. These customers are worried that by [...]

Read the full article →

Parallax v2.0 Celebration

July 17, 2012

Since first releasing Parallax a few months ago we’ve gotten a lot of the same requests: The ability to change the layout of each slide Some way to easily re-arrange slides, so that changing the order doesn’t require re-typing everything Gesture support for mobile devices like iPad, iPhone, and Android devices And I’m happy to [...]

Read the full article →

Armadillo v1.1.0

May 24, 2012

We’ve just released an update to Armadillo, adding localization support for nine languages, including English, German, French, Italian, Japanese, Spanish, Dutch, Polish, and Finnish. More languages are on the way, and we’ve actually made Armadillo smart enough that it can recognize custom language translations if they are just “dropped in”. More details about that will [...]

Read the full article →

A Warm Welcome to RapidSearch and RapidSearch Pro

April 30, 2012

It’s official! The immensely popular RapidSearch and RapidSearch Pro plugins have found a new home here at NimbleHost. We’re tremendously happy to continue the tradition that former RapidWeaver developer Josh Lockhart started with these great addons. If you’ve bought RapidSearch or RapidSearch Pro in the past, rest assured that you do not need to re-purchase [...]

Read the full article →

Multi-lingual Hover Menu

April 13, 2012

Update: See bottom of post for a link to a working demo. We recently had a customer ask about creating a multi-lingual hover menu in RapidWeaver. My first thought was that this sort of thing wasn’t possible, but after considering the question for a few moments I realized that not only was this possible, but [...]

Read the full article →

January 2011 Support Interruption

January 5, 2012

Just a quick note that starting tomorrow, January 5th, until Saturday, January 7th, we’ll be away at a three day conference. During that time support questions will take a bit longer to answer, so please keep that in mind when getting in touch with us. We’ll be back full steam on Monday, January 9th, and [...]

Read the full article →

Update News

November 29, 2011

By now most of you have heard about the Stacks 2 beta release – if not, you can read about it on the Stacks of Stacks blog. We’ve updated all NimbleHost stacks to be compatible with and take advantage of the new Stacks 2 features, so be sure to check for and install any updates. [...]

Read the full article →

A Special Sneak Peek at Gravity

July 15, 2011

After the release of our last two videos, a lot of people have been asking about the theme we used to illustrate the tips we shared. This video gives you a sneak peek, and I talk about the special “something” we’re doing with this release – you don’t want to miss it! If you have [...]

Read the full article →