.htaccess redirect problems...

.htaccess redirect problems...

Posted by: jprater
Posted on: 2008-03-02 16:23:00

Hi. I'm trying to create a .htaccess redirect rule to direct all traffic entering the root of my site to direct to a subdirectory. I tried this:

Redirect 301 / http://www.mydomain.com/phpBB

But, when I go to the root of my site, I get an error saying the site isn't redirecting properly. If I look in the address bar, it looks like this:

http://www.mydomain.com/phpBB/phpBB/phpBB/phpBB/phpBB/phpBB/....

How can I fix this?



Re: .htaccess redirect problems...

Posted by: Atropos7
Posted on: 2008-03-02 16:28:00

In reply to:

Hi. I'm trying to create a .htaccess redirect rule to direct all traffic entering the root of my site to direct to a subdirectory. I tried this:

Redirect 301 / http://www.mydomain.com/phpBB

But, when I go to the root of my site, I get an error saying the site isn't redirecting properly. If I look in the address bar, it looks like this:

http://www.mydomain.com/phpBB/phpBB/phpBB/phpBB/phpBB/phpBB/....

How can I fix this?


It can be fixed by reading the documentation carefully and using RedirectMatch instead.

cool openvein.org -//- One-time $50.00 discount on DreamHost plans: Use ATROPOS7Edited by Atropos7 on 03/02/08 04:29 PM (server time).

Re: .htaccess redirect problems...

Posted by: jprater
Posted on: 2008-03-02 16:50:00

Where can I find this documentation? I don't know exactly what to search for which is why I came here.

Re: .htaccess redirect problems...

Posted by: rlparker
Posted on: 2008-03-02 16:59:00

For starters, putting the words "documentation" and "redirectmactch" into Google (no quotes) provides some interesting results (like the apache manual, where all this stuff is discussed). wink

--rlparker

Re: .htaccess redirect problems...

Posted by: Atropos7
Posted on: 2008-03-02 18:20:00

I'll go ahead and clarify now.

Redirect is meant for matching URLs that

Tags: phpbbtrafficphpbbtraffic