URL veranderen (miss met .htaccess?)
Ik heb een klein vraagje..
Hoe kan ik bv van
http://www.google.nl/subsite
http://subsite.google.nl
maken?
Kan dit met .htaccess?
Hoe kan ik bv van
http://www.google.nl/subsite
http://subsite.google.nl
maken?
Kan dit met .htaccess?
Gesponsorde koppelingen:
Ohja die was ik kwijt.
Dankjewel =)
Maar het werkt niet xD
Ik heb de volgende code geprobeerd:
Veranderd in
Want ik wil het proberen met mijn USB Webserver, maar het werkt niet..
Hoe moet het wel? :$
Dankjewel =)
Maar het werkt niet xD
Ik heb de volgende code geprobeerd:
Code (php)
1
2
3
4
5
6
7
8
9
10
2
3
4
5
6
7
8
9
10
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]
# 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
Code (php)
1
2
3
4
5
6
7
2
3
4
5
6
7
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]
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? :$
Gewijzigd op 01/01/1970 01:00:00 door Henk en Annie



