Mobile app version of vmapp.org
Login or Join
Debbie626

: I run my own server on a similar principle, this is my configuration: It should work with little modification for you assuming that GoDaddy supports this type of thing (it seems to from your

@Debbie626

I run my own server on a similar principle, this is my configuration:

It should work with little modification for you assuming that GoDaddy supports this type of thing (it seems to from your question), except you'll need to change paths obviously. This configuration rewrites into folders like /var/www/vhosts/example.com/www for example.com.
RewriteEngine on

# Directory listing icons!
RewriteRule ^/icons/(.*)$ /var/www/icons/ [L]

# Ensure there is no RewriteCond %{HTTP_HOST} ^www.(.*)$ [NC]
RewriteRule ^(.*)$ %1 [R,L]

# Special case for the base domain
RewriteCond %{HTTP_HOST} ^(localhost|[^.]+.[^.]{1,8}(.au)?)$ [NC]
RewriteRule ^(.*)$ /var/www/vhosts/%1/www

# Rewrite subdomains into subdirectories
RewriteCond %{HTTP_HOST} ^(.*?).(localhost|[^.]+.[^.]{1,8}(.au)?)$ [NC]
RewriteRule ^(.*)$ /var/www/vhosts/%2/%1

10% popularity Vote Up Vote Down


Login to follow query

More posts by @Debbie626

0 Comments

Sorted by latest first Latest Oldest Best

Back to top | Use Dark Theme