JavaScript. My Friend, My Foe.

Friday, April 11th, 2008 | Blog

Aha! After messing around with 1and1’s config menus, WordPress’s config menus, .htaccess files, and a bit of time spent being mildly frustrated, I finally was able to make http://leemckusick.com redirect to http://leemckusick.com/blog, and all it took was 1 line of JavaScript.

I feel like a dork.

Maybe I need to retake 409, hehe.

1 Comment to JavaScript. My Friend, My Foe.

Dan
April 13, 2008

You know apache’s mod_rewrite is a powerful tool when it comes to redirection. You could have used one rule [one line of code] to perform the redirect you’re looking for, and it would be search-engine friendly too. Just a tip!

JS is sweet too though hehe, see also: scriptaculous! If you want more info on the mod_rewrite stuff just lmk cause its definitely more google-friendly than a js-based redirect :thumbup:

Leave a comment

Search

Twitter