Internal site redirection issue?

Richard G

Verified User
Joined
Jul 6, 2008
Messages
4,280
Location
Maastricht
I tried to use the internal site redirection option of Directadmin, to point a site to a subdirectory.

So I made the redirect to http://www.domain.com/blog/
However, this is the result in the browser url bar (also without the trailing slash) when you visit http://domain.com

Code:
http://www.domain.com/blog/blog/blog/blog/blog/blog/blog/blog/blog/blog/blog/blog/blog/blog/blog/blog/blog/blog/blog/blog/
And an error notice that the redirect is not correct.
I presumed that as normal, the index.php would be found automatically but it seems it doesn't.

I checked the .htaccess made by Directadmin and it only says this:
Code:
Redirect 301 / http://www.domain.com/blog/
What's the problem here? Did I have to make the redirect like this?
http://www.domain.com/blog/index.php

That should not be necessary or does it? I can't remember doing it that way before. But my memory isn't what it was before so I'm not sure.
Does it really need the index.php behind it? Or is this a bug?

I now fixed it by creating a .htaccess manually, also without index.php behind it:
Code:
RewriteEngine On
RewriteCond %{HTTP_HOST} ^(www.)?domain.com$
RewriteRule ^(/)?$ blog [L]
 
Top