Forum Moderators: phranque

Message Too Old, No Replies

Redirection works only from the outside

Redirection configuration problem

         

ThomasMart

7:52 am on Sep 19, 2005 (gmt 0)



I replaced an old Apache version with new version of Apache 2. In a process I use two times the redirection. It should work like this:
- You type in the URL http://example.com/subfolder1/
- In the subfolder exists a .htaccess which redirects to another subfolder.
- in this folder, again, is a redirection for every *.html file. The Apache should add the index.html if no file is given.

Finally the redirections works just once with the new Apache 2. It looks like it works the first time after typing in the URL but when it redirects internal it doesn't go through the .htaccess redirection.

Another important thing is the adding of the index.html file. Another test showed that when I type in the whole URL inclusive the subfolder and index.html it works. But if I omit the index.hmtl it doesn't work.
The old Apache worked finally with this. For me it looks like it redirects if it comes from the outside otherwise it doesn't realise the .htaccess file.

I couldn't find any trigger for this in the Apache configuration.

[edited by: jdMorgan at 2:26 pm (utc) on Sep. 19, 2005]
[edit reason] Example.com [/edit]