Link to home
Start Free TrialLog in
Avatar of leapingleon
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
ASKER CERTIFIED SOLUTION
Avatar of Ionut A. Tudor
Ionut A. Tudor
Flag of Romania image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of leapingleon
leapingleon

ASKER

Sometimes my laziness amazes even me. This forum just makes life too easy sometimes.

Thanks