The Moz Q&A Forum

    • Forum
    • Questions
    • My Q&A
    • Users
    • Ask the Community

    Welcome to the Q&A Forum

    Browse the forum for helpful insights and fresh discussions about all things SEO.

    1. SEO and Digital Marketing Q&A Forum
    2. Categories
    3. Technical SEO Issues
    4. 403 forbidden error website

    403 forbidden error website

    Technical SEO Issues
    7 4 2.5k
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as question
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • MaartenvandenBos
      MaartenvandenBos last edited by

      Hi Mozzers,

      I got a question about new website from a new costumer http://www.eindexamensite.nl/.

      There is a 403 forbidden error on it, and I can't find what the problem is.

      I have checked on: http://gsitecrawler.com/tools/Server-Status.aspx
      result:
      URL=http://www.eindexamensite.nl/ **Result code: 403 (Forbidden / Forbidden)**

      When I delete the .htaccess from the server there is a 200 OK :-). So it is in the .htaccess.

      .htaccess code: ErrorDocument 404 /error.html

      RewriteEngine On
      RewriteRule ^home$ / [L]
      RewriteRule ^typo3$ - [L]
      RewriteRule ^typo3/.$ - [L]
      RewriteRule ^uploads/.
      $ - [L]
      RewriteRule ^fileadmin/.$ - [L]
      RewriteRule ^typo3conf/.
      $ - [L]
      RewriteCond %{REQUEST_FILENAME} !-f
      RewriteCond %{REQUEST_FILENAME} !-d
      RewriteCond %{REQUEST_FILENAME} !-l
      RewriteRule .* index.php

      Start rewrites for Static file caching

      RewriteRule ^(typo3|typo3temp|typo3conf|t3lib|tslib|fileadmin|uploads|screens|showpic.php)/ - [L]
      RewriteRule ^home$ / [L]

      Don't pull *.xml, *.css etc. from the cache

      RewriteCond %{REQUEST_FILENAME} !^..xml$
      RewriteCond %{REQUEST_FILENAME} !^.
      .css$
      RewriteCond %{REQUEST_FILENAME} !^.*.php$

      Check for Ctrl Shift reload

      RewriteCond %{HTTP:Pragma} !no-cache
      RewriteCond %{HTTP:Cache-Control} !no-cache

      NO backend user is logged in.

      RewriteCond %{HTTP_COOKIE} !be_typo_user [NC]

      NO frontend user is logged in.

      RewriteCond %{HTTP_COOKIE} !nc_staticfilecache [NC]

      We only redirect GET requests

      RewriteCond %{REQUEST_METHOD} GET

      We only redirect URI's without query strings

      RewriteCond %{QUERY_STRING} ^$

      We only redirect if a cache file actually exists

      RewriteCond %{DOCUMENT_ROOT}/typo3temp/tx_ncstaticfilecache/%{HTTP_HOST}/%{REQUEST_URI}/index.html -f
      RewriteRule .* typo3temp/tx_ncstaticfilecache/%{HTTP_HOST}/%{REQUEST_URI}/index.html [L]

      End static file caching

      DirectoryIndex index.html

      CMS is typo3.

      any ideas?

      Thanks!
      Maarten

      1 Reply Last reply Reply Quote 0
      • Anthony_NorthSEO
        Anthony_NorthSEO last edited by

        Hi Maarten,

        I'm not extremely familiar .htaccess or the typo3 CMS, but it could be the issue is simply a result of misconfigured file permissions for a specific directory or path.

        I'd check the permissions on all of the paths that are affected by the .htaccess and make sure they're readable and executable (7,5,5).

        This could explain why you get the 200 status w/o the .htaccess but the 403 error with it.

        Good luck!

        1 Reply Last reply Reply Quote 1
        • Anthony_NorthSEO
          Anthony_NorthSEO last edited by

          Follow up:

          I'm not seeing any errors when visiting the site (http://www.eindexamensite.nl/). It seems to be working perfectly. Could it be something client-side w/ your caching or system time?

          MaartenvandenBos 1 Reply Last reply Reply Quote 0
          • loopyal
            loopyal last edited by

            Hello Maarten

            Those RewriteCond entries are cumulative and it looks like there are missing commands.

            Who edited that file last, and what did they change?

            The way conditionals work is you set a condition, Then you add a command, then a line break You can add more than one condition and it acts as AND

            This page has what look like too many conditions and not enough commands -but it could be ok

            Try adding a blank line between the rule entries and the Cond entries (but not between the Cond and the Rule entries)

            Here is what to do to test anything like this: Save a copy of the .htaccess Then start editing it Delete everything below ##Start rewrites See if that fixes it. If not, the problem is above or if that fixes it, the problem is below Keep cutting the file in half or adding half until you discover the problem line

            It is harder with all those conditionals, I suspect it is the lower block that is the problem

            So remove those Cond entries from the bottom up

            MaartenvandenBos 1 Reply Last reply Reply Quote 1
            • MaartenvandenBos
              MaartenvandenBos @Anthony_NorthSEO last edited by

              Thanks Anthony!

              That's the strange thing, website is working only there is still a 403.

              We will check chmod status.

              1 Reply Last reply Reply Quote 0
              • MaartenvandenBos
                MaartenvandenBos @loopyal last edited by

                Hi Alan,

                Ok we start cutting 🙂 the htaccess. I'll keep you posted.

                Thanks!

                1 Reply Last reply Reply Quote 0
                • jenallen
                  jenallen last edited by

                  Hi everyone,

                  I know this thread hasn't been active for a while but i'm looking for an answer relating to a similar issue. Our infrastructure team had issues a few weeks ago and were routing bot traffic to a slave server. This obviously flagged up 403 errors in webmaster tools.

                  Having removed the traffic diversion our site hasn't been indexed in the three weeks since serving Googlebot with a 403 response. Does anyone have experience of Google delaying reindexing of a site after experiencing a 403 response?

                  Thanks

                  1 Reply Last reply Reply Quote 0
                  • 1 / 1
                  • First post
                    Last post
                  • Subdomain 403 error
                    Roman-Delcarmen
                    Roman-Delcarmen
                    0
                    5
                    239

                  • Website showing 404 Error in Google Cache
                    Devtechexpert
                    Devtechexpert
                    0
                    6
                    5.9k

                  • Hi My website is showing 403 error. Please help me to find out the reason
                    RobCairns
                    RobCairns
                    0
                    2
                    223

                  • 403 forbidden error how to solve them
                    LynnPatchett
                    LynnPatchett
                    0
                    4
                    2.6k

                  • During my last crawl suddenly no errors or warnings were found, only one, a 403 error on my homepage.
                    FedeEinhorn
                    FedeEinhorn
                    0
                    2
                    130

                  • 9,194 Crawl Errors on my website!!!!
                    MikeTek
                    MikeTek
                    0
                    5
                    208

                  • Which are the best website reporting tools for speed and errors
                    ClaireH-184886
                    ClaireH-184886
                    0
                    6
                    423

                  • Website of only circa 20 pages drawing 1,000s of errors?
                    Matt-Williamson
                    Matt-Williamson
                    0
                    2
                    227

                  Get started with Moz Pro!

                  Unlock the power of advanced SEO tools and data-driven insights.

                  Start my free trial
                  Products
                  • Moz Pro
                  • Moz Local
                  • Moz API
                  • Moz Data
                  • STAT
                  • Product Updates
                  Moz Solutions
                  • SMB Solutions
                  • Agency Solutions
                  • Enterprise Solutions
                  • Digital Marketers
                  Free SEO Tools
                  • Domain Authority Checker
                  • Link Explorer
                  • Keyword Explorer
                  • Competitive Research
                  • Brand Authority Checker
                  • Local Citation Checker
                  • MozBar Extension
                  • MozCast
                  Resources
                  • Blog
                  • SEO Learning Center
                  • Help Hub
                  • Beginner's Guide to SEO
                  • How-to Guides
                  • Moz Academy
                  • API Docs
                  About Moz
                  • About
                  • Team
                  • Careers
                  • Contact
                  Why Moz
                  • Case Studies
                  • Testimonials
                  Get Involved
                  • Become an Affiliate
                  • MozCon
                  • Webinars
                  • Practical Marketer Series
                  • MozPod
                  Connect with us

                  Contact the Help team

                  Join our newsletter
                  Moz logo
                  © 2021 - 2026 SEOMoz, Inc., a Ziff Davis company. All rights reserved. Moz is a registered trademark of SEOMoz, Inc.
                  • Accessibility
                  • Terms of Use
                  • Privacy