403 forbidden

For programming and general questions on Zend Framework
Post Reply
Posts: 1
Joined: Tue Jun 27, 2017 5:37 pm

403 forbidden

Post by alpe3397 » Tue Jun 27, 2017 5:47 pm

Hello There

i have developed my website amplepoints dot come using zend framwork

when i have visit my website amplepoints dot come i have getting 403 forbiddent error on my home page

i have not getting this error on any other pages just getting error on home page

i dont have index.php file on my root directory but i have index.php file on my public folder

i have write .htacess file to point my public folder on root directory

please can you let me know how to solve this error bucause i done R & D and there is some solution some are saide that it because you dont have index.php on root directory

but when i have put index file then my website not working

please help me to solve this problem

Following is My .htacess code on root directory

Code: Select all

RewriteEngine On
RewriteCond %{REQUEST_URI} !^/public/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /public/$1

<IfModule mod_expires.c>
RewriteEngine on
RewriteCond %{HTTP_USER_AGENT} libwww-perl.* 
RewriteRule .* ? [F,L]
ExpiresActive On 
ExpiresByType image/jpg "access 1 month" 
ExpiresByType image/jpeg "access 1 month" 
ExpiresByType image/gif "access 1 year" 
ExpiresByType image/png "access 1 year" 
ExpiresByType text/css "access 1 month" 
ExpiresByType text/html "access 1 month" 
ExpiresByType application/pdf "access 1 month" 
ExpiresByType text/x-javascript "access 1 month" 
ExpiresByType application/x-shockwave-flash "access 1 month" 
ExpiresByType image/x-icon "access 1 year" 
ExpiresDefault "access 1 month"

Post Reply