Mobile app version of vmapp.org
Login or Join
Heady270

: Can .htaccess be changed through FTP after it was edited in WordPress in a way that breaks the site? I made the mistake of putting in the following code on my .htaccess file thru Yoast SEO:

@Heady270

Posted in: #Ftp #Htaccess #Redirects #Seo

I made the mistake of putting in the following code on my .htaccess file thru Yoast SEO:

# Remove www from any URLs that have them:
RewriteEngine on
RewriteCond %{HTTP_HOST} ^www.
RewriteRule ^(.*)$ example.com/ [R=301,L]


Now there's an infinite loop and I can't access my WordPress dashboard anymore. Is it possible to access the .htaccess file thru an FTP client like FileZilla and remove the change?

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Heady270

1 Comments

Sorted by latest first Latest Oldest Best

 

@Cody1181609

Absolutely. Your .htaccess file is located in the root directory of the website and can be accessed via FTP.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme