Zend Server Community Edition .htaccess issue

1.9k Views Asked by At

I am a new user of Zend Server. For some reason Apache is not reading my htaccess file in the project folder. please check my settings:

Document root:C:\Program Files\Zend\Apache2\htdocs\

project folder: C:\Program Files\Zend\Apache2\htdocs\project1\website\

htaccess path: C:\Program Files\Zend\Apache2\htdocs\project1\website.htaccess

Example to of rewrite rule in htaccess:

RewriteRule ^([a-zA-Z0-9\-]*)-([0-9]*)-([0-9]*)\.php$  /project1/website/index.php?cat=$2&page=$3 [L]

changes in httpd.conf file:

LoadModule rewrite_module modules/mod_rewrite.so

<Directory "C:\Program Files\Zend\Apache2/htdocs">
    Options Indexes FollowSymLinks
    AllowOverride ALL
    Order allow,deny
    Allow from all
</Directory>

The index page is working fine http:// localhost/project1/website/

1

There are 1 best solutions below

0
Hamed Khosravi On

You should go to httpd.conf file in your apchachi folder/conf and change AllowOverride none to AllowOverride ALL after restart apachi server.Hope it work.