List Info

Thread: Reg: .htaccess RewriteRule ..




Reg: .htaccess RewriteRule ..
user name
2008-05-12 09:42:06

Dear Friends,

I am learning Zend Framework from http://framework.zend.com/wiki/display/ZFDEV/Official+ZF+QuickStart and according to the tutor i created alias as /qs/ and the Directory is "d:/QuickStart/public/". i created a .htaccess file with the following code
RewriteEngine on
RewriteRule !.(js|ico|gif|jpg|png|css)$ index.php

i get 400 Bad Request
Bad Request
Your browser sent a request that this server could not understand.

and if i use the following code in .htaccess

RewriteEngine on
RewriteRule !.(js|ico|gif|jpg|png|css)$ /index.php

i am getting the default localhost web root instud of the files hosted in "d:/QuickStart/public/".

The software installed in the system is

WampServer 2.0c [05/05/2008]
Includes :
- Apache 2.2.8
- MySQL 5.0.51b
- PHP 5.2.6

i have enabled "rewrite_module" in apache.

Please suggest regarding the problem.

Thanks & Regards,
Satya

________________________________________

type_D

[Non-text portions of this message have been removed]

__._,_.___
.

__,_._,___
[1]

about | contact  Other archives ( Real Estate discussion Medical topics )