$PHP_SELF with redirected domain

From: Date: Wed, 26 Feb 2003 17:42:53 +0000
Subject: $PHP_SELF with redirected domain
Groups: php.general 
Request: Send a blank email to php-general+get-137285@lists.php.net to get a copy of this message
If I use $PHP_SELF as the action in a form where the domain name is redirected, I get the extra directory. Is there a way around that? Details: The domain name is redirected in .htaccess like this: RewriteCond %{REQUEST_URI} !domain2 RewriteRule ^(.*) %1/$1 [L] So, domain2 is really a directory on domain1, but http://domain2.com will be taken to that directory on domain 1 as if it was the http root But, when using $PHP_SELF, I get the extra directory, so the form may start here: http://domain2.com/myform.php But the $PHP_SELF forces the next POST page to be http://domain2.com/domain2/myform.php Ideas? kind regards, bill hollett

« previous php.general (#137285) next »