I want to put my webpage into maintenance so I replace my original htaccess file with this:
ErrorDocument 403 /maintenance/maintenance.php
order deny,allow
deny from all
allow from 111.222.333.444
Have read a lot of threads before posting and this is what i gathered would be the correct solution, but I don´t get it to work. If I don´t allow from my own IP I get an Error 500 (meaning that that is what my visitors would see) and if I do use my IP I get and Error 403 (and I dont even reach my maintenance page it sais I´m not allowed there either).
What am I doing wrong here? Thanks in advance.
Found the solution that worked for me.
The .htaccess you posted works for me with
Allow from 127.0.0.1
, but you need an additional .htaccess in themaintenance
directory, allowing access to themaintenance.php
error documentTry my tips, paste this code into the
.htaccess
of your site, to make all the pages of your domain remapping into/maintenance.html
file, if the viewer's I.P. isn't the same as yours:Keep noted that the numbers
000\.111\.222\.333
must be changed as your I.P. address, and create a/maintenance.html
file where your pages will be remapped.