Hello .. My Question is . i have a file called "ttp://domain.com/number.php" with .htaccess i've modified it to looks like "http://domain.com/number/6" well i want to give a "IF" condition .. how to get the url of the modified file ? i've tried __FILE__ but it gives "number.php" Any help ? Thanks .
Hm, try using the following: $_SERVER['REQUEST_URI'] PHP: Just to be sure can you post the output of this please (when requesting a page via the rewritten URL): print_r($_SERVER); PHP: