Thanks Kudose..
I searched for mod_rewrite and found SO MANY unique confusing solutions.
RewriteEngine On
RewriteRule ([a-zA-Z0-9-]+)$ user.php?username=$1
RewriteRule ([a-zA-Z0-9-]+)/$ user.php?username=$1
RewriteEngine on
RewriteCond %{SCRIPT_FILENAME} !-f
RewriteCond %{SCRIPT_FILENAME} !-d
RewriteRule ([a-zA-Z0-9]+)\/?$ profile.php?username=$1
I'm using a PHP script for Affiliates using url's with "id" as:
[url]http://mysite.com/?ref=53[/url]
But i want to display the urls with "username"as:
[url]http://mysite.com/username[/url]
The url used to display in my script is: http://{program_url}/?ref={userid}
And i want to put this url in my script: http://{program_url}/{name}
I don't have a .htaccess file in public.html
What should i use to Rewrite Engine in .htaccess
Thanks in advance.