Changed .htaccess file and can not change it back

  • Profilbild för Okänd

    The following lines were added to the .htaccess file which made it corrupt.

    RewriteEngine on
    RewriteCond %{HTTP_HOST} ^oldwebsite.com [NC,OR]
    RewriteCond %{HTTP_HOST} ^ http://www.oldwebsite.com [NC]
    RewriteRule ^(.*)$ https://newdomain.com/$1 [L,R=301,NC]

    I’m not able to change the .htaccess file since my site is now throwing an internal server error. Is there any way I can manually change the .htaccess to the old configuration without cPanel or FileZilla (preferrably using SSH)?

    WP.com: Unknown
    Jetpack: Yes
    Correct account: Yes

    Den blogg jag behöver hjälp med är (synlig endast för inloggade användare).

  • Ämnet ’Changed .htaccess file and can not change it back’ är stängd för nya svar.