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
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php