301 moved permanently php + httaccess

0

Unintentionally I put the 301 command in .htaccess and I can no longer access the local host mu .... how do I reverse this ??? what folder is this setting in ?? any tips for reversing this ????

In the index.php file, I accidentally wrote the following code:

 <?php

 header("HTTP/1.1 301 Moved Permanently");
 header("Location: localhost/en/");
 ?>

How do I reverse this?

    
asked by anonymous 06.03.2018 / 02:43

1 answer

0

What operating system are you using? If it is linux, use sudo nano / etc / hosts and see which port is configured to access localhost. Otherwise open the folder of your project and make sure the .htaccess file is not hidden.

    
06.03.2018 / 02:58