.htaccess=awesome

I sweated like a moe over how to fix my mistake of installing my new blog (with all of my old blog’s content) into a new directory instead of in the old blog directory.Since I was only trying it out I didn’t want to go to the trouble of doing things right.I was still dubious about just how easy it would be to set up my site to match my WordPress blog design.It was easy-so easy that my already scrappy organisational skills abandoned me and I wnt ahead and installed without thinking.Be careful not to be like me! So here is how I fixed it.
.htaccess Redirect is easy to do.

Simply paste *this into **your .htaccess file in the root of your directory:

Redirect /olddirectory http://yoursite.com/newdirectory/

*Put the correct domain name and directory names of course.

**if you don’t have one it’s easy to make one with any text editor like Notepad.

Just name and save a new file .htaccess. Open file and paste in the redirect. Then load with ftp to the root. In my case that is the same level as the public_html directory, which is called htdocs.

Thanks to javascriptkit.com

Go to their tutorial
There’s lots more on .htaccess to be found there.

3 thoughts on “.htaccess=awesome”

  1. This is great for fixing the problem of old links. Since all people clicking a link that would have gone to the old directory will be Re-directed to the new one,you won’t have ask your friends to change their blogroll. Less work for everybody!

  2. You know what? I completely botched my last most recent attempt to have pretty links.
    It’s a conspiracy! I’m usually very good at following instructions.

Comments are closed.