SEO Egghead by Jaimie Sirovich: A blog about SEO, written for nerds, by a nerd.

Choose a Topic:

» Suggest a topic or buzz to cover; if I write about it, you'll get credit with a link in the post!

Mon
22
May '06

Yahoo Hosting's Lack of .htaccess Support

Here I am, minding my own business, trying to write a rule for mod_rewrite that redirects /blog/ to / so there's no duplicate content (just in case I missed a homepage link in the template -- or someone links it -- it gets redirected).  And here I am discovering that Yahoo (quite lamely) doesn't support .htaccess files at all. Wow, this totally stinks.

This comes after also discovering that Yahoo also doesn't allow their managed WordPress installation to go in the root directory, either.

But I found a solution:

if ($_SERVER['REQUEST_URI'] == '/blog/') {
  header("HTTP/1.1 301 Moved Permanently");
  header("Location: http://www.seoegghead.com/");
  exit();
}

Just toss that in the index.php from the WordPress control panel. Ironically, WP also lets you manage .htaccess, but it blows up. Surprise surprise. Yahoo: either fix this, or remove the link in WP.

And yes, I know I'm totally lame for using Yahoo.  I thought I'd stop micro managing and let someone else host for me (I own my own servers for my own work).  Big mistake.

These icons link to social bookmarking sites where readers can share and discover new web pages.
  • del.icio.us
  • digg
  • Furl
  • Reddit
  E-Mail This Post/Page

One Response to “Yahoo Hosting's Lack of .htaccess Support”

  1. Billy Says:

    This issue really blows because it does not allow setting up some powerful php scripts properly without the mod-rewrites to make it search engine friendly.

    I can't understand why Yahoo does not support the .htaccess at this stage of internet time.

Leave a Reply