Hi
 
Try this,
 
RewriteRule !^\.(js|ico|gif|jpg|png|css)$ index.php

 
 
Thanks & regards,
Muthukumar Selvarasu,
Project Manager (Web Development),
Webmasters Ltd.
 
From: php_mysql@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf
Of [EMAIL PROTECTED]
Sent: Tuesday, May 13, 2008 2:45 AM
To: php_mysql@yahoogroups.com
Subject: [php_mysql] Reg: .htaccess RewriteRule ..
 
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]
 


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

Reply via email to