$conf, $runtime; function_exists('chdir') AND chdir(APP_PATH); $r = 'mysql' == $conf['cache']['type'] ? website_set('runtime', $runtime) : cache_set('runtime', $runtime); } function runtime_truncate() { global $conf; 'mysql' == $conf['cache']['type'] ? website_set('runtime', '') : cache_delete('runtime'); } register_shutdown_function('runtime_save'); ?>How to fix .htaccess corrupted|Programmer puzzle solving
最新消息:Welcome to the puzzle paradise for programmers! Here, a well-designed puzzle awaits you. From code logic puzzles to algorithmic challenges, each level is closely centered on the programmer's expertise and skills. Whether you're a novice programmer or an experienced tech guru, you'll find your own challenges on this site. In the process of solving puzzles, you can not only exercise your thinking skills, but also deepen your understanding and application of programming knowledge. Come to start this puzzle journey full of wisdom and challenges, with many programmers to compete with each other and show your programming wisdom! Translated with DeepL.com (free version)

How to fix .htaccess corrupted

matteradmin9PV0评论

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.

Articles related to this article

Post a comment

comment list (0)

  1. No comments so far