Server unable to read htaccess file, denying access to be safe

前端 未结 14 2846
情深已故
情深已故 2020-12-12 20:15

I have created a simple app using AngularJS. When I tried to host that project in my website http://demo.gaurabdahal.com/recipefinder it shows the following error:

14条回答
  •  执念已碎
    2020-12-12 20:47

    GoDaddy shared server solution

    I had the same issue when trying to deploy separate Laravel project on a subdomain level.

    File structure

    - public_html (where the main web app resides)
        [works fine]
    
        - booking.mydomain.com (folder for separate Laravel project)
            [showing error 403 forbidden]
    

    Solution

    1. go to cPanel of your GoDaddy account

    2. open File Manager

    3. browse to the folder that shows 403 forbidden error

    4. in the File Manager, right-click on the folder (in my case booking.mydomain.com)

    5. select Change Permissions

    6. select following checkboxes

       a) user - read, write, execute
       b) group - read, execute
       c) world - read, execute
      
       Permission code must display as 755
      
    7. Click change permissions

提交回复
热议问题