403 forbidden error on WAMP localhost of Wordpress' stylesheet file bootstrap.css

Posted on 2014-08-25
Last Modified: 2014-09-29

I'm getting a 403 forbidden error on my WAMP localhost (Win 7 64bit) using Wordpress. It can access the index and the Apache server is working fine but it can't access the stylesheet.

I tried this:
<Directory "C:/wamp/www/test/trunk/php/wordpress">
	Options All
	AllowOverride all
	Order Deny,Allow
	  Allow from

Open in new window

And I tried the same above code except with "Allow from all" but to no avail.

Note - Apache can access the main style.css of the active theme folder but it can't access the @import bootstrap.css files. For some reason, it's trying to access the .css file as an html file it seems like.

Here's the snapshot of the Network tab in the Chrome dev tool:Chrome dev tool Network tab. bootstrap.css has a 403 forbidden error
Here's the Chrome dev snapshot attached.
Question by:Victor Kimura
    LVL 6

    Assisted Solution

    by:Mandeep Singh

    Try to open your bootstrap.css file location in a new tab. like: http://localhost/........./bootstrap.css

    Check permission of bootstrap.css file.

    Accepted Solution

    @Mandeep Singh,

    yes, it's a permissions error. Odd that when I unzipped the bootstrap zip folder all the folders (css, fonts, js folders) are greyed out. I looked for the permissions but I don't see anything that is causing the "greyed out" permissions. On Windows 7 64bit pro.

    greyed out bootstrap download files. How do I ungrey them (set the proper permissions)?

    Oh, I think I just figured it out. Why does Bootstrap have the setting of "file encryption" on their download files. That is so odd and doesn't really make sense to me.

    Solution: right click folder, click "Properties", then "Advanced" button, then uncheck "Encrypt contents to secure data". That does the trick. Spent over an hour trying to figure this out but by the Father's grace figured it out.

    Author Closing Comment

    by:Victor Kimura
    I think I found the answer on a "hidden" blog post somewhere or some forum.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Why You Should Analyze Threat Actor TTPs

    After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

    Developers of all skill levels should learn to use current best practices when developing websites. However many developers, new and old, fall into the trap of using deprecated features because this is what so many tutorials and books tell them to u…
    If your site has a few sections that need to be secure when data is transmitted between the server and local computer, such as a /order/ section for ordering or /customer/ which contains customer data, etc it would of course be recommended to secure…
    Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
    The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

    737 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    20 Experts available now in Live!

    Get 1:1 Help Now