I’m converting a site that has SO much legacy html and my goal is to move all of the html files that are currently mapped to say
FROM www.example.com/test.html to www.example.com/html/test.html
I don’t want old bookmarks or google results to fail. The goal is so that I can replace these eventually with yii views i.e. site\test but for now, the client doesn’t have the money to convert everything (hundreds of files)
Ideally, I want to basically move all of the html files into /html and have routing take care of it
It’d basically be a TODO list of files to convert to yii as financing becomes available.
Yes, I could leave them in the root folder, but it just seems messy.
I was thinking of something like this i.e. in config/main.php:
'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>',
'test.html' => 'html/test.html',
or, even better something like
I was thinking of something like this i.e. in config/main.php:
'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>',
'*.html' => 'html/*.html',
But, I don’t know how to do this, YET.
Is it possible?
Appreciate your time. Sincerely
-MG