Skip to content

Instantly share code, notes, and snippets.

View reginpv's full-sized avatar
🏠
Working from home

Gin reginpv

🏠
Working from home
  • Bulacan, Philippines
View GitHub Profile
@reginpv
reginpv / .htaccess
Last active June 22, 2017 03:45
Serving sub-directory as a ROOT via Apache (Linux environment)
RewriteEngine On
# Map http://www.yourdomain to /SUBDIR.
RewriteRule ^$ /SUBDIR/ [L]
# Map http://www.yourdomain/x to /SUBDIR/x unless there is a x in the web root.
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !^/SUBDIR/
RewriteRule ^(.*)$ /SUBDIR/$1