• Hello WP Forum,

    I wonder whether you could help?

    I am trying to score more on Google’s PageSpeed with my wordpress installations with alterations to the .htaccess file, adding W3 total, adding file compressions…

    I am a bit of a newbie.

    Is the .htaccess file in the root folder accessed by all wordpress installations?
    Does WP installed on subdomains access this file?
    Does WP installed in subfolders access this file?

    I only wonder as once I messed up the .htaccess file in the root folder by trying to add some code for compression and not only the WP on the main domain stopped working but the WP installations on subdomains as well: I had an internal error message on the screen when trying to access the sites in a browser.

    thank you,
    Kris

Viewing 2 replies - 1 through 2 (of 2 total)
  • Is the .htaccess file in the root folder accessed by all wordpress installations?
    Does WP installed on subdomains access this file?
    Does WP installed in subfolders access this file?

    The answers are NO and NO.
    My expectation is that each website install is very independant, this is how shared hosting is very successful.

    Issues of speed often come down to having images which are the correct size for their use, hosting quality and location is also important.

    Thread Starter Kris

    (@tedor2)

    Hello Ross,

    thank you for your response.

    I asked the same questions to the hosting company and they told me to sort it out with wordpress.

    I only think the .htaccess file in the root folder is accessed by the subdomains as when I add the code I was suggested to use for compression all websites (main, subdomain, subfolder domains) are loading up the same internal error screen.

    How can this happen?

    Thank you,
    Kris

    P.s:
    I added this behind the wordpress code to the file:

    mod_gzip_on Yes
    mod_gzip_dechunk Yes
    mod_gzip_item_include file \.(html?|txt|css|js|php|pl)$
    mod_gzip_item_include handler ^cgi-script$
    mod_gzip_item_include mime ^text/.*
    mod_gzip_item_include mime ^application/x-javascript.*
    mod_gzip_item_exclude mime ^image/.*
    mod_gzip_item_exclude rspheader ^Content-Encoding:.*gzip.

    Thanks,
    Kris

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

The topic ‘.htaccess/subdomain/subfolder/redirect/…’ is closed to new replies.