php-general | 2003022
Date: 02/26/03
- Next message: Anthony Ritter: "Re: [PHP] imagecreate()"
- Previous message: Chris Hayes: "Re: [PHP] Deleting a page after viewing it"
- Next in thread: Chris Hayes: "Re: [PHP] $PHP_SELF with redirected domain"
- Reply: Chris Hayes: "Re: [PHP] $PHP_SELF with redirected domain"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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:
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
- Next message: Anthony Ritter: "Re: [PHP] imagecreate()"
- Previous message: Chris Hayes: "Re: [PHP] Deleting a page after viewing it"
- Next in thread: Chris Hayes: "Re: [PHP] $PHP_SELF with redirected domain"
- Reply: Chris Hayes: "Re: [PHP] $PHP_SELF with redirected domain"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

