Jump to content

pagination problem in mod rewrite


lovesmith

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.