![]() |
Redirect all urls to lowercase - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: CodeIgniter 4 (https://forum.codeigniter.com/forumdisplay.php?fid=28) +--- Forum: CodeIgniter 4 Support (https://forum.codeigniter.com/forumdisplay.php?fid=30) +--- Thread: Redirect all urls to lowercase (/showthread.php?tid=76883) |
Redirect all urls to lowercase - cvlancvlan - 06-29-2020 My question is how can i set header 301 for this redirect ? I think i didn't setup correctly header 301 for this redirect. PHP Code: $response->setHeader('HTTP/1.1 301 Moved Permanently', ''); Recently i created this code for redirect all urls from my app to lowercase. If someone have a good idea please tell me. App/Controllers/BaseController.php PHP Code: <?php namespace App\Controllers; app/Common.php PHP Code: <?php |