Title: htaccess rewrite things
Last modified: August 21, 2016

---

# htaccess rewrite things

 *  [wpbud](https://wordpress.org/support/users/wpbud/)
 * (@wpbud)
 * [13 years ago](https://wordpress.org/support/topic/htaccess-rewrite-things/)
 * I have two things added to my .htaccess file in home dir. Is this correct way,
   can i make it more efficient somehow?
 *     ```
       <IfModule mod_rewrite.c>
       RewriteEngine On
       RewriteBase /
       RewriteRule ^index\.php$ - [L]
       RewriteCond %{REQUEST_FILENAME} !-f
       RewriteCond %{REQUEST_FILENAME} !-d
       RewriteRule ./ /index.php [L]
       </IfModule>
       #
       # Securing wp-includes, Block the include-only files
       RewriteEngine On
       RewriteBase /
       RewriteRule ^wp-admin/includes/ - [F,L]
       RewriteRule !^wp-includes/ - [S=3]
       RewriteRule ^wp-includes/[^/]+\.php$ - [F,L]
       RewriteRule ^wp-includes/js/tinymce/langs/.+\.php - [F,L]
       RewriteRule ^wp-includes/theme-compat/ - [F,L]
       ```
   

The topic ‘htaccess rewrite things’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 0 replies
 * 1 participant
 * Last reply from: [wpbud](https://wordpress.org/support/users/wpbud/)
 * Last activity: [13 years ago](https://wordpress.org/support/topic/htaccess-rewrite-things/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
