Title: htaccess problems
Last modified: April 3, 2024

---

# htaccess problems

 *  [websitefix](https://wordpress.org/support/users/websitefix/)
 * (@websitefix)
 * [2 years, 2 months ago](https://wordpress.org/support/topic/htaccess-problems-12/)
 * i want to find out what my htaccess file should look like. i have looked at my
   file and want to know if this is causing my website problems and if it is stopping
   google from indexing my website properly.
 * can anyone please offer me advice. the file seems very long

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [SH Sajal Chowdhury](https://wordpress.org/support/users/shsajalchowdhury/)
 * (@shsajalchowdhury)
 * [2 years, 2 months ago](https://wordpress.org/support/topic/htaccess-problems-12/#post-17548406)
 * you can use default wordpress htaccess here I am provide default htaccess code.
 *     ```wp-block-code
       # BEGIN WordPress
   
       RewriteEngine On
       RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
       RewriteBase /
       RewriteRule ^index\.php$ - [L]
       RewriteCond %{REQUEST_FILENAME} !-f
       RewriteCond %{REQUEST_FILENAME} !-d
       RewriteRule . /index.php [L]
   
       # END WordPress
       ```
   
 *  Moderator [James Huff](https://wordpress.org/support/users/macmanx/)
 * (@macmanx)
 * [2 years, 2 months ago](https://wordpress.org/support/topic/htaccess-problems-12/#post-17549688)
 * WordPress’s .htaccess rules can differ depending on installed plugins.
 * If you want to see what yours would be without customizations, follow these steps:
    1. Access your server via [SFTP or FTP](https://developer.wordpress.org/advanced-administration/upgrade/ftp/),
       or a file manager in your hosting account’s control panel (consult your hosting
       provider’s documentation for specifics on these), and rename the .htaccess file
       to just htaccess (remove the dot). If you can’t find a .htaccess file, ensure
       that you have set your SFTP or FTP client to view invisible files.
    2. Visit Settings > Permalinks in your Dashboard, and re-save your permalink structure.
    3. Access your server via SFTP or FTP, or a file manager in your hosting account’s
       control panel, and compare the new .htaccess file to the old htaccess file with
       a [plain text editor](https://developer.wordpress.org/advanced-administration/wordpress/edit-files/#text-editors).
 * You can restore the old file at any time by deleting the new .htaccess file and
   adding the dot back to the front of the old htaccess file.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘htaccess problems’ is closed to new replies.

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

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
