htaccess problem
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!!
Joe Hussar
[email protected]
http://www.candylandcrafts.com
Joe Hussar posted this at 16:03 — 13th October 2006.
They have: 71 posts
Joined: Mar 2002
Here's what works..................
Redirect /phpBB2/index.php http://www.candylandcrafts.com/forums.htm
Busy posted this at 20:53 — 13th October 2006.
He has: 6,151 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
Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.