Viewing 4 replies - 1 through 4 (of 4 total)
  • Ashok

    (@bappidgreat)

    Hello @twisha22

    Is it a shared server or vps?

    Do you know if you host has any restriction to access regular folder? And did you install wordpress using one click installer or manually?

    Have a good day!

    Cheers
    Ash

    Thread Starter twisha22

    (@twisha22)

    Hello Ashok.

    No its shared severs. Previously it was working. I have done few changes in site than after it’s stop working.

    This is one of my client’s site. And wordpress was installed before 2 years.

    Hello twisha22,

    Would you please let us know the changes you made on your site? Have you tried to revert it back?

    Please post your .htaccess file here so we could have a closer look?

    Kind Regards,
    Nastia

    Thread Starter twisha22

    (@twisha22)

    Here is the code of htaccess file. With the minify css disable because site is live, so I can not change this right now. But the issue is because of minify css only. It show 403 error and the permission is 777 for the folder and I delete the minifed css than also it shows the same error as well as I have cleared all cache but the same error is there.

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

    # END WordPress

    <IfModule mod_deflate.c>
    AddOutputFilterByType DEFLATE application/x-javascript application/javascript text/javascript text/css text/html text/xml
    </IfModule>
    <IfModule mod_expires.c>
    # Enable expirations
    ExpiresActive On
    # Default directive
    ExpiresDefault “access plus 1 month”
    # My favicon
    ExpiresByType image/x-icon “access plus 1 year”
    # Images
    ExpiresByType image/gif “access plus 1 month”
    ExpiresByType image/png “access plus 1 month”
    ExpiresByType image/jpg “access plus 1 month”
    ExpiresByType image/jpeg “access plus 1 month”
    # CSS
    ExpiresByType text/css “access 1 month”
    # Javascript
    ExpiresByType text/javascript “access plus 1 year”
    ExpiresByType application/javascript “access plus 1 year”
    </IfModule>

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘403 forbidden error for css minify’ is closed to new replies.