Yii Framework Forum: Url Rewrite - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Url Rewrite Url Rewrite is not work Rate Topic: -----

#1 User is offline   gaoqingsiner 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 3
  • Joined: 14-March 13

Posted 14 March 2013 - 04:36 AM

I set Url Rewrite,like:
'urlManager'=>array(
'urlFormat'=>'path',
'showScriptName'=>false,
'rules'=>array(
'<controller:\w+>/<id:\d+>'=>'<controller>/view',
'<controller:\w+>/<action:\w+>/<id:\d+>'=>'<controller>/<action>',
'<controller:\w+>/<action:\w+>'=>'<controller>/<action>',
),
),
and i set .htaccess like:
<IfModule rewrite_module>

Options +FollowSymLinks

IndexIgnore */*

RewriteEngine On



RewriteCond %{REQUEST_FILENAME} !-f

RewriteCond %{REQUEST_FILENAME} !-d

RewriteRule . index.php

</IfModule>

and i still set httpd.conf like
LoadModule rewrite_module modules/mod_rewrite.so
why it still take e mistake like:
Not Found

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

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users