cancel
Showing results for 
Search instead for 
Did you mean: 

rewrite rules in .htaccess file help needed

skyeman
Newbie
Posts: 1
Registered: ‎02-07-2011

rewrite rules in .htaccess file help needed

Hi,
I have an application build on Zend framework with a typical Zend Framework .htaccess files. I installed the app on many servers, but I completely cannot install it on your server. Obviously the problem must be with .htaccess rules. Could someone have a look and modify them? This can be helpful for others trying to install Zend apps. Thanks
RewriteEngine On
###### rewrite base
RewriteBase /cpbc/public/.

###### rewrite conditions
RewriteCond %{REQUEST_FILENAME} -s [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.*$ - [NC,L]
###### rewrite rule
RewriteRule ^.*$ index.php [NC,L]
1 REPLY 1
spraxyt
Superuser
Superuser
Posts: 10,063
Thanks: 1,369
Fixes: 75
Registered: ‎06-04-2007

Re: rewrite rules in .htaccess file help needed

Assuming that .htaccess file is in the /cpbc/public folder try setting the RewriteBase line to
RewriteBase /cpbc/public

The file needs to be uploaded as ASCII with access permissions set to 0640.
Have you set file and folder permissions as described in the CGI platform upgrade FAQ?
David