2015-02-23 6 views
6

मैंने अपना सरल PHP ऐप Heroku में धक्का दिया है और कुछ जेएस फ़ाइलों के लिए 403 स्थिति प्राप्त की है।हेरोकू 403 स्थैतिक जेएस फाइलों के लिए निषिद्ध

https://guarded-forest-7267.herokuapp.com/vendor/jquery/dist/jquery.min.js Failed to load resource: the server responded with a status of 403 (Forbidden) https://guarded-forest-7267.herokuapp.com/vendor/jquery-form/jquery.form.js Failed to load resource: the server responded with a status of 403 (Forbidden) https://guarded-forest-7267.herokuapp.com/vendor/jquery-validate/dist/jquery.validate.min.js Failed to load resource: the server responded with a status of 403 (Forbidden) https://guarded-forest-7267.herokuapp.com/vendor/jquery.inputmask/dist/inputmask/jquery.inputmask.js Failed to load resource: the server responded with a status of 403 (Forbidden) https://guarded-forest-7267.herokuapp.com/vendor/modernizer/modernizr.js Failed to load resource: the server responded with a status of 403 (Forbidden) https://guarded-forest-7267.herokuapp.com/vendor/jselector/src/jquery.jselector.js Failed to load resource: the server responded with a status of 403 (Forbidden) https://guarded-forest-7267.herokuapp.com/vendor/rubber-carousel/dist/jquery.rubber-carousel.min.js Failed to load resource: the server responded with a status of 403 (Forbidden) https://guarded-forest-7267.herokuapp.com/vendor/jmodal/src/jquery.jmodal.js Failed to load resource: the server responded with a status of 403 (Forbidden) https://guarded-forest-7267.herokuapp.com/vendor/scrollReveal.js/dist/scrollReveal.min.js Failed to load resource: the server responded with a status of 403 (Forbidden)

समस्या क्या हो सकता है?

+0

index.php के लिए किसी को भी इस सवाल का जवाब पता है की अनुमति देते हैं? मैं एक ही मुद्दे का सामना कर रहा हूँ – LNT

उत्तर

0

यह .htaccess फाइल

में गलत कॉन्फ़िगरेशन के कारण था वहाँ अपनी .htaccess फाइल में किसी भी RewriteRule हैं यह करने से पहले इन RewriteCond जोड़ें।

RewriteCond %{REQUEST_FILENAME} !-f 
RewriteCond %{REQUEST_FILENAME} !-d 

उदाहरण के लिए इस कोड को आप स्टैटिक फ़ाइलें छोड़कर सभी अनुरोधों को रीडायरेक्ट करने के लिए

Options +FollowSymLinks 
RewriteEngine On 
RewriteCond %{REQUEST_URI} !=/index.php 
RewriteCond %{REQUEST_FILENAME} !-f 
RewriteCond %{REQUEST_FILENAME} !-d 
RewriteRule .* /index.php 
संबंधित मुद्दे