I have the following .htaccess file below.
# permanently redirect specific IP request for entire site
Options +FollowSymlinks
RewriteEngine on
RewriteCond %{REMOTE_HOST} 12\.28\.84
RewriteRule \.*$
http://www.buildlastingsuccess.com/ [R=301,L]
RewriteEngine on
RewriteCond %{REQUEST_URI} !^/cpanel/.*
RewriteCond %{HTTP_HOST} ^www\.timefreedomnow\.net [OR]
RewriteCond %{HTTP_HOST} ^timefreedomnow\.net
RewriteRule ^(.*)$ /gcp/$1 [L,QSA]
I want to add a rule to take any request coming in from the address like this:
http://www.timefreedomnow.net/?username
I want them to redirect to:
http://www.timefreedomnow.net/profile/username
Where it appends the username from the first url to the end of the second url.
Thanks everyone,
Sean McGilvray

This should work I think...
RewriteEngine On RewriteCond %{REQUEST_URI} ^/$ RewriteCond %{QUERY_STRING} ^([a-z0-9]+)$ [NC] RewriteRule .* /profile/%1? [L,R=301]2. Make sure the query string has one or more characters and limit those characters to ones allowed in the username.
3. Redirect.
Notice the single ? at the end of the redirect URI, that is required to remove the original query string from the URI, without it the original query string will be sent over to the page you are redirecting to.
FYI: You only need one 'RewriteEngine On' line in the htaccess file.