B
B
Bogritsenko2017-04-20 20:10:13
PHP
Bogritsenko, 2017-04-20 20:10:13

MAMP installed a site on local hosting, but there is a redirect to the "under development" page, how to remove the redirect?

MAMP installed a site on local hosting, but a redirect to the "under development" page is configured there, I can’t go to index.php or to any other page ... As far as I understand, the problem is in the .htaccess file, but I don’t understand anything about it. .. Here is its content:


RewriteEngine On
#RewriteCond %{REMOTE_ADDR} !^50\.183\.103\.219$
RewriteCond %{REQUEST_URI} !\.(css|jpg|png|gif|bmp|js|ico) [NC]
RewriteCond %{REQUEST_URI} !under-construction\.html
RewriteRule ^(.*)$ /under-construction.html [R=302,L]


If I leave the file empty, it displays ERROR 500 in the browser.
This is the same flawed page that does not allow me to live in peace -> under-construction.html

I tried to edit it somehow, for example, cut this line with a link, but again ERROR 500!

About the great sages of coding and habr, enlighten me, low-traffic, and don’t judge strictly, so that I’m a complete zero in this. Yes, and thanks in advance! P.S. I use MAC.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
VisualIdeas, 2017-04-20
@VisualIdeas

RewriteEngine On
#RewriteCond %{REMOTE_ADDR} !^50\.183\.103\.219$
#RewriteCond %{REQUEST_URI} !\.(css|jpg|png|gif|bmp|js|ico) [NC]
#RewriteCond %{REQUEST_URI} !under-construction\.html
#RewriteRule ^(.*)$ /under-construction.html [R=302,L]

A
Anna, 2017-04-22
@AnnaWeb88

If I understood you correctly, then just try to delete the .htaccess file

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question