After some research I have found that the .htaccess code to show a mantainance mode is the following:
# BEGIN MAINTENANCE MODE
# <IfModule mod_rewrite.c>
# RewriteEngine on
# RewriteCond %{REMOTE_ADDR} !^111\.111\.111\.111
# RewriteCond %{REQUEST_URI} !maintenance.html$ [NC]
# RewriteCond %{REQUEST_URI} !\.(jpe?g?|png|gif) [NC]
# RewriteRule .* maintenance.html [R=302,L]
# </IfModule>
# END MAINTENANCE MODE
It kind of works alright, but once I am in the homepage using my computer (which is the only one that loads the actual site) and I try to go to another page within the site (Example: homepage is hello.com and another page is hello.com/blog) it will redirect me to the maintenance mode (which, for me, is a PDF file).
In other words, the homepage loads with my IP, but all of the other pages of the site, get redirected to the PDF I have set for the maintenance mode.
I have looked for the answer but all I see everywhere is the code I'm showing you above.
Examples:
How to set maintenance mode for entire website with htaccess