lovesmith Posted March 2, 2008 Share Posted March 2, 2008 well i have following lines in my .htaccess file RewriteRule ^contractors/([a-z]*) index.php?uname=$1 the link goes like this http://www.mysite.com/contractors/myname goes to http://www.mysite.com/index.php?uname=myname i want to get the value of url like this http://www.mysite.com/contractors/myname, but when i use $_SERVER['PHP_SELF'] it gives an actual path index.php. How i can get the re-writed path? Link to comment https://forums.phpfreaks.com/topic/93985-pagination-problem-in-mod-rewrite/ Share on other sites More sharing options...
trq Posted March 2, 2008 Share Posted March 2, 2008 basename($_SERVER['REQUEST_URI']); Link to comment https://forums.phpfreaks.com/topic/93985-pagination-problem-in-mod-rewrite/#findComment-481565 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.