I would like to rewrite an url, but I always do not get any adequate results.
I would like the url http://something.domain.com/index.php?arguments... to actually v
Thank you for the help! It seems that I do not have to add a wildcard dns entry, but to create a wildcard sub-domain in cpanel.
You can use this code in your DOCUMENT_ROOT/.htaccess
file of something
domain:
RewriteEngine On
RewriteCond %{HTTP_HOST} ^([^.]+)\.(domain\.com)$ [NC]
RewriteRule ^(index\.php)$ http://%2/$1?username=%1 [L,QSA,NC,R]