I am dont know mutch about .htaccess. I need help here. I have this code in my .htaccess
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ pro_detail.php?client=$1 [PT]
which changes
http://xyx.pk/abc/pro_detail.php?client=umair
to
http://xyz.pk/abc/umair
now I need change
http://xyz.pk/abc/project_detail.php?project=dreamhousing
to
http://xyz.pk/abc/dreamhousing
please help.
thanks
This url scheme will not work. Because .htaccess rules have no idea which text belongs to project or which text belongs to client. It’ll always match the first rule. Its better you prefix
project/orclient/. This way they can be mapped correctly. So use this,This will allow
http://xyz.pk/abc/project/dreamhousingto maphttp://xyz.pk/abc/project_detail.php?project=dreamhousing