RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^.*$ http://<%= @wifi_ip %>/index.php [R] Require all granted :81> #ServerName www.example.com ServerAdmin webmaster@localhost DocumentRoot /var/rhizomatica/portal #LogLevel info ssl:warn ErrorLog ${APACHE_LOG_DIR}/portal_error.log CustomLog ${APACHE_LOG_DIR}/portal_access.log combined