O.a.
[google]htaccess virtual subdomain[/google].
Je moet ook met de dns klooien.
Ohja die was ik kwijt.
Dankjewel =)

Maar het werkt niet xD

Ik heb de volgende code geprobeerd:

RewriteEngine On

# Extract the subdomain part of domain.com
RewriteCond %{HTTP_HOST} ^([^\.]+)\.website\.com$ [NC]

# Check that the subdomain part is not www and ftp and mail
RewriteCond %1 !^(www|ftp|mail)$ [NC]

# Redirect all requests to a php script passing as argument the subdomain
RewriteRule ^.*$ http://www.website.com/profile.php?username=%1 [R,L]


Veranderd in

RewriteEngine On

RewriteCond %{HTTP_HOST} ^([^\.]+)\.localhost:8080\com$ [NC]

RewriteCond %1 !^(www|ftp|mail)$ [NC]

RewriteRule ^.*$ http://www.website.com/profile.php?username=%1 [R,L]


Want ik wil het proberen met mijn USB Webserver, maar het werkt niet..
Hoe moet het wel? :$

Reageren