Reverse redirect 301

Asked

Viewed 75 times

0

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

<?php

header("HTTP/1.1 301 Moved Permanently");
header("Location: http://www.habbo.com.br");
?>

The redirect was only supposed to be temporary. Now, even deleting the file and creating another one I can no longer do for the page to be loaded in that same file index.php.

How do I reverse that?

  • No content in . htaccess.

  • Just made the modification in this file or other ?

  • Just this one. I even tried to do a temporary redirect, and put any content in the file. But it doesn’t come back.

  • You use Filezilla to upload files?

1 answer

0

Go to the . htaccess file and change:

Rewriterule %1 [L,R=301]

for

RewriteRule ^ %1 [L,R=307]

Browser other questions tagged

You are not signed in. Login or sign up in order to post.