justuptime.com - monitor your servers & websites

htaccess problem

You are viewing this site as a guest. Join our community to get your questions answered and share knowledge. Active members may advertise and ask for a website critique.

They have: 68 posts

Joined: Mar 2002

Hi....

I hope this is the right place to ask.

I am trying to redirect visitors from an existing location to another using .htaccess file. I have tried everything I can think of but nothing seems to work. Can anyone help??

I want to redirect anyone trying to access my "forum" (which I'm shutting down) to an explanation page, etc in my site.

FROM: http://www.candylandcrafts.com/phpBB2/index.php

(this is the intro page of the forum......... the forum is located in the phpBB2 directory of my web site).

TO: http://www.candylandcrafts.com/forums.htm

I created an .htaccess file with notepad, then uploaded it to the root directory of the forum (here> http://www.candylandcrafts.com/phpBB2/ )

For actual content in the .htaccess file I've used (nothing else but what is typed below - I've tried all 3 lines separately):

Redirect index.php http://www.candylandcrafts.com/forums.htm

or

Redirect 301 /index.php http://www.candylandcrafts.com/forums.htm

or

Redirect 301 / http://www.candylandcrafts.com/forums.htm

Can anyone tellme what I missed? I upload it in ASCII.

Thanks!!

They have: 68 posts

Joined: Mar 2002

Here's what works..................

Redirect /phpBB2/index.php http://www.candylandcrafts.com/forums.htm

Busy's picture
Modrater

He has: 6,148 posts

Joined: May 2001

You don't need the full address if within your own site, so this would work

Redirect 301 /phpBB2/ ../forums.htm

<?bhb if(broken){ echo("It wasn't me Smiling "); } ?>
Learn HTML the ez way - EzHTML.net

Some people are like slinkies, they dont really serve any purpose but they still bring a smile to your face when you push them down the stairs ...