I’ve got the problem that I still got the url format in some parts in my url. Like “?id=2” for example … everything else works like I want it.
Thats how my UrlManager config looks like:
'urlManager' => array(
'showScriptName' => false,
'urlFormat' => 'path',
'rules' => array(
'dimanzo' => 'site/login',
'prod.1' => 'statistic/index',
'prod.2' => 'newsletter/create',
'prod.3' => 'entry/index',
'entry/<id:\d+>/<title:.*?>' => 'entry/view',
'entries/<tag:.*?>' => 'entry/index',
'<controller:\w+>/<action:\w+>' => '<controller>/<action>',
),
),
.htaccess:
Options +FollowSymLinks
IndexIgnore */*
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
The second question I have is: How is it possible, to deactivate the old links? Example of the UrlManager config above:
'prod.3' => 'entry/index',
make just the ‘prod.3’ work and disable the ‘entry/index’.
Thanks a lot in advance,
Mayjestic