The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

how to check the .htaccess files (5 posts)

  1. SJWelsted
    Posted 3 years ago #

    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.

  2. Clayton James
    Posted 3 years ago #

    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.

  3. SJWelsted
    Posted 3 years ago #

    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?

  4. Clayton James
    Posted 3 years ago #

    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
  5. SJWelsted
    Posted 3 years ago #

    Thanks :-)

Topic Closed

This topic has been closed to new replies.

About this Topic