Se, det ser interessant ud
Det virker dog ikke efter hensigten.
Jeg får denne meddelelse:
Forbidden
You don't have permission to access / on this server.
--------------------------------------------------------------------------------
Apache/2.2.9 (Unix) PHP/5.2.6 Server at test.ellyton.com Port 80
# Rewrite <subdomain>.ellyton.com/<path> to ellyton.com/<subdomain>/<path>
#
# Skip rewrite if no hostname or if subdomain is www
RewriteCond %{HTTP_HOST} .
RewriteCond %{HTTP_HOST} !^www\. [NC]
# Extract (required) subdomain (%1), and first path element (%3), discard port number if present (%2)
RewriteCond %{HTTP_HOST}<>%{REQUEST_URI} ^([^.]+)\.ellyton\.com(:80)?<>/([^/]*) [NC]
# Rewrite only when subdomain not equal to first path element (prevents mod_rewrite recursion)
RewriteCond %1<>%3 !^(.*)<>\1$ [NC]
# Rewrite to /subdomain/path
RewriteRule ^(.*) /%1/$1 [L]
Er der noget forkert i min kode?