I need every page request on a site -- 200, 404, etc. -- to land at a fixed page on the site, in this case index_new.php
.
I've tried other SO and ServerFault answers and I continue to get an endless redirect loop.
Here's my code in httpd.conf:
<VirtualHost *:80>
ServerName my.example.com
ServerAlias *.my.example.com
RewriteEngine On
RewriteCond %{REQUEST_URI} !^/index_new.php
RewriteRule ^(.*)$ /index_new.php [R=301,L]
</VirtualHost>
Notes:
- the site's
.htaccess
file is empty - the "
index_new.php
" page is static with no PHP header("location:") internal redirects, etc. - I have restarted apache