Url Rewrite

I meet a question when i use urlManager like :

Not Found

The requested URL /yiitest/site/contact was not found on this server.

my config is :

‘urlManager’=>array(

		'urlFormat'=>'path',


                    'showScriptName'=>false,    // 这一步是将代码里链接的index.php隐藏掉。


		'rules'=>array(


			'<controller:\w+>/<id:\d+>'=>'<controller>/view',


			'<controller:\w+>/<action:\w+>/<id:\d+>'=>'<controller>/<action>',


			'<controller:\w+>/<action:\w+>'=>'<controller>/<action>',


		),


	),

<IfModule rewrite_module>

Options +FollowSymLinks





IndexIgnore */*





RewriteEngine On











RewriteCond %{REQUEST_FILENAME} &#33;-f





RewriteCond %{REQUEST_FILENAME} &#33;-d





RewriteRule . index.php

</IfModule>

and in httpd.conf i set

LoadModule rewrite_module modules/mod_rewrite.so

why?

你的目录结构是怎么样的,是否目录结构错了,还是说rewrite错了,你可以测试下这个地址是否有到index.php,然后再找问题