Title: .htaccess file help
Last modified: October 28, 2019

---

# .htaccess file help

 *  [adnanhassan91](https://wordpress.org/support/users/adnanhassan91/)
 * (@adnanhassan91)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/htaccess-file-help-3/)
 * My website got hacked by japanese keyword hack. i want to reset my .htaccess 
   file. is it ok?
 *     ```
       <IfModule mod_rewrite.c>
       RewriteEngine On
       RewriteBase /
       RewriteRule ^index\.php$ - [L]
       RewriteCond %{REQUEST_FILENAME} !-f
       RewriteCond %{REQUEST_FILENAME} !-d
       RewriteRule . /index.php [L]
       </IfModule>
   
       # php -- BEGIN cPanel-generated handler, do not edit
       # Set the “ea-php73” package as the default “PHP” programming language.
       <IfModule mime_module>
         AddHandler application/x-httpd-ea-php73 .php .php7 .phtml
       </IfModule>
       # php -- END cPanel-generated handler, do not edit
   
       # 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
       ```
   
 * i Don’t know coding so i want to set default file.

Viewing 1 replies (of 1 total)

 *  Moderator [James Huff](https://wordpress.org/support/users/macmanx/)
 * (@macmanx)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/htaccess-file-help-3/#post-12074221)
 * Only use this:
 *     ```
       # php -- BEGIN cPanel-generated handler, do not edit
       # Set the “ea-php73” package as the default “PHP” programming language.
       <IfModule mime_module>
         AddHandler application/x-httpd-ea-php73 .php .php7 .phtml
       </IfModule>
       # php -- END cPanel-generated handler, do not edit
   
       # 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
       ```
   
 * As for the hack itself, carefully follow [this guide](https://wordpress.org/support/article/faq-my-site-was-hacked/).
   When you’re done, you may want to implement some (if not all) of [the recommended security measures](https://wordpress.org/support/article/hardening-wordpress/)
   and [start backing up your site](https://wordpress.org/support/article/wordpress-backups/).

Viewing 1 replies (of 1 total)

The topic ‘.htaccess file help’ is closed to new replies.

## Tags

 * [htaccess](https://wordpress.org/support/topic-tag/htaccess/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: [James Huff](https://wordpress.org/support/users/macmanx/)
 * Last activity: [6 years, 6 months ago](https://wordpress.org/support/topic/htaccess-file-help-3/#post-12074221)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
