RewriteEngine on RewriteCond %{REQUEST_URI} !(\/index\.php)$ RewriteCond %{REQUEST_URI} !(\/pi-logo_128\.png)$ RewriteCond %{REQUEST_URI} !(\/content\/.*)$ RewriteCond %{REQUEST_URI} !(\/index\.php)$ RewriteCond %{REQUEST_URI} !(\/pi-logo_128\.png)$ RewriteCond %{REQUEST_URI} !(\/content\/.*)$ RewriteCond %{REQUEST_URI} !(\/css\/.*)$ RewriteCond %{REQUEST_URI} !(\/doc\/.*)$ RewriteCond %{REQUEST_URI} !(\/docker\/.*)$ RewriteCond %{REQUEST_URI} !(\/img\/.*)$ RewriteCond %{REQUEST_URI} !(\/js\/.*)$ RewriteCond %{REQUEST_URI} !(\/modules\/.*)$ RewriteCond %{REQUEST_URI} !(\/tests\/.*)$ RewriteCond %{REQUEST_URI} !(\/*.php)$ RewriteCond %{REQUEST_URI} !(\/*.head.*)$ RewriteRule ^(.*)$ http://10.1.1.1/index.php [L,R=301]