leapingleon
asked on
mod_rewrite and $_SERVER['PHP_SELF']
Hi All
I am using mod_rewrite to rewrite my url's. However, when I call $_SERVER['PHP_SELF'] it gives the actual page, and not the rewritten page. Is there any way I can get the rewritten pages instead?
i.e. www.domain.com/view.php?id=1 is rewritten as www.domain.com/1/Listing.php
Is there anyway I can get the "/1/Listing.php" instead of "view.php" returned?
Thanks
I am using mod_rewrite to rewrite my url's. However, when I call $_SERVER['PHP_SELF'] it gives the actual page, and not the rewritten page. Is there any way I can get the rewritten pages instead?
i.e. www.domain.com/view.php?id=1 is rewritten as www.domain.com/1/Listing.php
Is there anyway I can get the "/1/Listing.php" instead of "view.php" returned?
Thanks
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks