• Resolved Pexle Chris

    (@pexlechris)


    Hi. With the htaccess rules of your plugin my subdirectory(/ebooks) of my website is being unavailable.

    When I remove your rules from htaccess, this page is loaded correctly.

    Is there a solution for my problem?

    The page I need help with: [log in to see the link]

Viewing 15 replies - 1 through 15 (of 20 total)
  • Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @pexlechris,

    I am sorry about the issue you are having and I am happy to assist you with this.
    The rules written in .htaccess file are based on your W3 Total Cache settings. Can you please share which settings you have enabled in Performance>General, and disable one by one to see which one might be causing this. Don’t forget to purge the cache after you disable each setting.
    Also, make sure to update your .htaccess with Rewrite Rules (based on active settings)in Performance>Install.
    Please let us know if any of this helps.

    Thread Starter Pexle Chris

    (@pexlechris)

    When Browser Cache is enabled, I have the problem

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @pexlechris,
    Can you please update your .htaccess with Rewrite Rules (based on active settings)in Performance>Install and see if the issue persist?

    Thread Starter Pexle Chris

    (@pexlechris)

    This does not fix my problem ??

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @pexlechris,
    Can you please deselct the options in Performance>Browser Cache, save and purge cache after each and see which option might be causing this?

    Thread Starter Pexle Chris

    (@pexlechris)

    Thread Starter Pexle Chris

    (@pexlechris)

    # BEGIN W3TC Page Cache core
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{HTTPS} =on
    RewriteRule .* – [E=W3TC_SSL:_ssl]
    RewriteCond %{SERVER_PORT} =443
    RewriteRule .* – [E=W3TC_SSL:_ssl]
    RewriteCond %{HTTP:X-Forwarded-Proto} =https [NC]
    RewriteRule .* – [E=W3TC_SSL:_ssl]
    RewriteCond %{HTTP_COOKIE} w3tc_preview [NC]
    RewriteRule .* – [E=W3TC_PREVIEW:_preview]
    RewriteCond %{REQUEST_METHOD} !=POST
    RewriteCond %{QUERY_STRING} =””
    RewriteCond %{HTTP_COOKIE} !(comment_author|wp\-postpass|w3tc_logged_out|wordpress_logged_in|wptouch_switch_toggle) [NC]
    RewriteCond %{REQUEST_URI} \/$
    RewriteCond “%{DOCUMENT_ROOT}/wp-content/cache/page_enhanced/%{HTTP_HOST}/%{REQUEST_URI}/_index%{ENV:W3TC_SSL}%{ENV:W3TC_PREVIEW}.html” -f
    RewriteRule .* “/wp-content/cache/page_enhanced/%{HTTP_HOST}/%{REQUEST_URI}/_index%{ENV:W3TC_SSL}%{ENV:W3TC_PREVIEW}.html” [L]
    </IfModule>
    # END W3TC Page Cache core

    These rules in htaccess cause the problem

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @pexlechris,
    Just to clarify. Please tell me which one of these statements are true.
    1. With those rules in .htaccess and browser cache enabled you are experiencing the issue?
    2. With those rules in .htaccess and when Browser Cache is disabled the issue is gone?
    3. If you remove those rules from .htaccess and browser cache is still enabled the issue is gone?

    Thread Starter Pexle Chris

    (@pexlechris)

    1) Yes
    2) No
    3) The issue is gone but when I reload my site the plugin creates again these rules

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @pexlechris,

    Can you please completely remove and reinstall W3 Total Cache?

    1. Purge Cache
    2. Deactivate and Delete Plugin
    3. Check .htaccess File (make backup)
    W3TC will create many directives in .htaccess file to control the caching behavior. Each section will start and end with comments like “#BEGIN W3TC Page Cache core” and “#END W3TC Page Cache core”.
    Ensure that no residual entries are leftover in your .htaccess file after deleting the plugin.
    4. Delete wp-content files and folders
    – cache folder
    – w3tc-config folder
    – object-cache.php File (if exists)
    – advanced-cache.php (if exists)
    – dbcache.php (if exists)
    – upgrade folder
    – W3-total-cache folder in your /plugins/ folder (if exists)
    5. Delete Cached Files from CDN (if using CDN)
    Besides deleting all the relevant files, if you use CDN then ensure to purge the cached content from your CDN. This is necessary when you enabled minify option in W3TC settings. You should delete the minified and combined scripts and CSS files from your CDN server to avoid the site breaking on the browser.
    6. Re-install W3 Total Cache

    Thread Starter Pexle Chris

    (@pexlechris)

    and what settings to enable?

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @pexlechris,

    You should enable the setting that best suit your needs.
    Enabling Page Cache, Browser Cache, and Object cache is good to start with.

    Thread Starter Pexle Chris

    (@pexlechris)

    No. It doesn’t work. I had uninstalled your plugin. Buy

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @pexlechris,

    You stated in one of the previous posts that the issue is gone if you disable Browser cache regardless if the rules are in the. htaccess or not. Is this correct?

    Thread Starter Pexle Chris

    (@pexlechris)

    if the rules are in the htaccess, problem exists

Viewing 15 replies - 1 through 15 (of 20 total)
  • The topic ‘htaccess make subdirectory 404 page’ is closed to new replies.