I'm glad a forum like this one exists so the beginners like me can get help from experts. I'm not *very* good at english so please help me through gently!
I have made a website where my visitors can create a little "website" on it with their own smart URL.
EXAMPLE
My domain: domain.dk
The users smart domain: username.domain.dk
The real URL: domain.dk/view.php?site=username
So the username (the subdomain) before 'domain.dk' is also a kind of a variable which must be sent to the PHP-file (view.php) where the file shows the data from the user 'username' from the subdomain.
The data (which is the content on the users website) comes from a database and therefor the username in the URL works as a ID to the database.
Can anyone (who is sure of what he is doing) create the code which I can use in the mod_rewrite???
Thank you very much! I'm very thankful of your help!
Best regards
Jesper Holm, Denmark