How to fix .htaccess corrupted

admin2025-06-05  3

I was working on the live site, I think the plugin cause file .htaccess corrupted so my site is down "500 Internal Server Error", I read a solution to rename .htaccess but when I use Filezilla to do it get "550 rename failed" so I can not rename it, I try to go setting -> save permalinks but not working. is there anyway other way to fix .htaccess error? please help me its emergency.

I was working on the live site, I think the plugin cause file .htaccess corrupted so my site is down "500 Internal Server Error", I read a solution to rename .htaccess but when I use Filezilla to do it get "550 rename failed" so I can not rename it, I try to go setting -> save permalinks but not working. is there anyway other way to fix .htaccess error? please help me its emergency.

Share Improve this question asked Oct 12, 2016 at 12:56 YoonaYoona 391 gold badge4 silver badges11 bronze badges 2
  • 1 You could try just deleting the .htaccess and then re-saving the permalinks to regenerate a completely new .htaccess file. Also, what plugin did you install before this happened? – Tex0gen Commented Oct 12, 2016 at 13:51
  • Custom permalinks - oh my god, it works very great at first but then it actually has something to do with woocommerce - WMPL cause my whole site went down. thanks for your help but it not .htaccess can fix it but I try – Yoona Commented Oct 12, 2016 at 15:34
Add a comment  | 

1 Answer 1

Reset to default 2

Try reverting back to the default .htaccess file with the following code:

# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress

If you're using some other "flavor" of WP (e.g. multisite) view the htaccess docs on the Codex for the appropriate .htaccess setup.

转载请注明原文地址:http://conceptsofalgorithm.com/Algorithm/1749071924a316112.html

最新回复(0)