Hi guys, http://localhost/buzzkhmer/Site/index.php?p=jobdetail&job_id=1 want to change to http://localhost/buzzkhmer/Site/index.php/p/jobdetail/job_id/1 and this is htaccess code Options +FollowSymLinks RewriteEngine on RewriteRule /p/(.*)/job_id/(.*)\.php index.php?p=$1&job_id=$2 please help. Thanks digital member :]
Your doing it the wrong way around to get that effect. Switch your rule so that the index.php portion is first and the /p/ portion comes second remembering to change the vars.
Hi Martin, Could you send me a complete sample of using htaccess to make url friendly ? my email is chea_samnang06[at]yahoo[dot]com Thanks and wait your email
No sorry. I don't email off forum unless I am conducting business. Here is what I meant by switching it around: RewriteRule index.php?p=(.*)&job_id=(.*) /p/$1/job_id/$2\.php Code (markup): It probably won't work out of the box, but play with it and try to get it working yourself. There are thousands of people asking these questions on this forum and there are a lot of samples around.