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?