Hello,
I'm desperate here...
I'm developing a site that runs perfectly on a server with the PHP
module in apache.
The problem is that the site will be hosted on a server with PHP as
CGI (from PHPinfo:Version 4.0.4pl1, Configure Command './configure'
'--prefix=/usr/local/php' '--enable-static' '--enable-safe-mode=yes'
'--enable-track-vars=yes' '--enable-memory-limit=yes'
'--enable-short-tags=no' '--with-gd=/usr/local'
'--with-mysql=/usr/local/mysql' '--enable-force-cgi-redirect' )
I have a couple of Header( Location: )'s in the site that are not
working properly.
The redirect actualy happens BUT the address in the addressbar of the
browser doesn't change.
A little example: the first time someone visits he has to choose his
language. At that moment a cookie is set.
The next time he reaches the www.site.com/index.html some code checks
for the cookie and he should get redirected to the first page in his
language, that is www.site.com/language/home/index.html
What actualy happens is that he gets to see the page but in the
addressbar it still shows www.site.com/index.html This gives a couple
of problems:
when the user clicks refresh on his browser, the address in the
addressbar gets refreshed and not the page he got redirected to.
on that first page there is a java applet that doesn't get found (it
looks for it in the root instead of in the home-directory.
I hope this all is a littlebit understandable ...
I don't know if this is important but I added a .htaccess in the root
that forces .html to get parsed as php:
Action application/x-httpd-php /cgi/php.cgi
AddHandler application/x-httpd-php .html
I don't think this has something to do with it but I add it just in
case.
Thanks to anyone who can shed some light on my problem!
Bert