i have found this code for htaccess to disable the entire website (for maintenance mode):
Options +FollowSymlinks
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_URI} !/offline.php$
RewriteRule .* /offline.php [R=307,L]
Now in my offline.php page i have a link to css and js files, like:
<link rel="stylesheet" href="include/css/error.css">
<script src="include/js/file.js"></script>
when i use the code above to set the maintenance mode, the offline.php page is loaded, but without the css and js, how can i allow the loading of these 2 files?
and i think that is useful to disable the website for everyone except my ip, in this way i can update the website, is that possibile?