Hello, i face this problem. this is my url: www.example.com/profile.php?recid=2 But i want like www.example.com/user can i make it? Any PHP or Javascript function
Use mod rewrite, there's a tutorial on DP about that; http://forums.digitalpoint.com/showthread.php?t=23044
As Sky AK47 said, you can write a rule to .htaccess file to do this which is faster than using a scripting language.
Erhm...I didn't fully get your question. Just use mod_rewrite in your htaccess and you can check the GET parameters with eg. PHP.
this is my code. i dont know where the problem Options +Indexes Options +FollowSymlinks RewriteEngine On RewriteBase /socialbio/ RewriteRule ^(.*)\.html$ profile.php?recid=$1 [L] my base folder RewriteBase /socialbio/ i upload the .htaccess in the socialbio folder. there main one problem i send recid(profile.php?recid=) but i want /socialbio/username it possible.
Create an .htaccess file in the root folder and add the following: RewriteEngine On Options +FollowSymlinks RewriteRule ^profile/([0-9]+)\.html$ ./profile.php?recid=$1 [L,NC] Code (markup): This will give an output like example.com/profile/2.html Not tested but should work.
this is my main url: http://www.xtremewebresources.com/socialbio/profile.php?recid=8&username=moin i want like : http://www.xtremewebresources.com/socialbio/moin now tell me how can i do it(.htaccess)