• 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)
  • you can use default wordpress htaccess here I am provide default htaccess 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

    (@macmanx)

    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, 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.

    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.