Yii Framework Forum: Can't Configure Routing Yii? - Yii Framework Forum

Jump to content

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

Can't Configure Routing Yii? Rate Topic: -----

#1 User is offline   flamboyant 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 9
  • Joined: 16-August 13

Posted 12 May 2014 - 04:49 AM

Forgive me for such a frequent situation, I searched the Internet. I tried it, I didn't have anything goes. I can't configure routing in Yii. I would be grateful if anybody can help a beginner:

1) I have a finished project to Yii.

2) I have the cloud to digitalocean, installed the LAMP, in the/var/www/html uploaded project.

3) My /var/www/html/.htaccess

RewriteEngine on

# if a directory or a file exists, use it directly
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d

# otherwise forward it to index.php
RewriteRule . index.php
4) /var/www/protected/config/main.php

// uncomment the following to enable URLs in path-format
'urlManager' => array(
'urlFormat' => 'path',
'rules' => array(
'<controller:\w+>/<id:\d+>' => '<controller>/view',
'<controller:\w+>/<action:\w+>/<id:\d+>' => '<controller>/<action>',
'<controller:\w+>/<action:\w+>' => '<controller>/<action>',
),
//not show index.php
'showScriptName' => false,
),
5) /var/www/html/protected/.htaccess

deny from all
6) Yii framework in /var/www/yii.

If you enter the URL of the project via a browser, enter /var/www/html/, /var/www/yii/does not see, is this normal? Tell me how to configure the correct routing? (without "/?r="). Folders 777, Files 666 rewrite_module (shared)
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