![]() |
Codeigniter Routing Problems - 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: Codeigniter Routing Problems (/showthread.php?tid=75718) |
Codeigniter Routing Problems - rickfontoura91 - 03-09-2020 I have this website (php, CI, ubuntu, apache, mysql): https://oneclickpy.com/ The homepage is working fine. But no one of the other pages works ![]() My config.php: $config['base_url'] = "https://oneclickpy.com"; $config['index_page'] = ''; $config['uri_protocol'] = 'AUTO'; My routes.php: $route['default_controller'] = "home"; $route['admin'] = "admin/login"; $route['apple'] = "home/apple"; $route['xiaomi'] = "home/xiaomi"; $route['samsung'] = "home/samsung"; My .htaccess: RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteCond $1 !^(index\.php|assets|upload|robots\.txt|.*\.css) RewriteRule ^(.*)$ index.php?/$1 [L] Rewrite mod is enabled on VPS. It was working fine in other hosting, but not now on Digital Ocean. When I open the website home, it's ok. But when trying to open other pages (like "apple", "samsung"), I got 404 error. What can I do? |