Created
March 14, 2014 16:13
-
-
Save crazylion/9550908 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
RewriteEngine On | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteCond %{REQUEST_FILENAME} !-d | |
RewriteRule ^(.*)\?*$ index.php/$1 [L,QSA] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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>', | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment