Support » Plugins » how to check the .htaccess files

  • I have had some problems with Malware on my site and was suggested to update the version and plugins but now when I click on ‘update’ on the dashboard page I am sent to the google search engine page.

    I have been told to check where the .htaccess files are being directed to but I don’t know how to do that. Please help.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Use the file manager in your hosts control panel or your ftp client to view and edit .htaccess. .htaccess files are hidden by default, so you will first need to make sure that “Show Hidden Files” is selected from the tools menu in your ftp client or file manager.

    The .htaccess file should be located in the directory where your all of your WordPress files are installed.

    Thanks ClaytonJames, i’ve now located the files but on opening them realised that I don’t actually know what should be written in them but from what I can work out it doesn’t send to my site or my blog. I’m not entirely sure what should be written in there, does anyone have an example?

    The default .htaccess can be completely blank, and WordPress should use the default permalink structure – don’t forget to check and see what’s in your dashboard options under permalink settings.

    This is an example of an basic .htaccess file using pretty permalinks with a custom structure of /%postname%/

    # 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]
    # END WordPress

    Thanks 🙂

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘how to check the .htaccess files’ is closed to new replies.