Created 2010-04-02
To make all accesses to a website go to a single page, for example
during an upgrade, in .htaccess, include the lines
RewriteEngine On RewriteCond %{REQUEST_URI} !singlepage\.html RewriteRule .* /singlepage.html [L]The user will see the usual URL in the address bar, but all requests will be directed to
singlepage.html. If you want to
change what is shown in the user's address bar, use R as
follows:
RewriteEngine On RewriteCond %{REQUEST_URI} !singlepage\.html RewriteRule .* /singlepage.html [L,R]The user will then see the address
http://www.example.com/singlepage.html in his address
bar.