Remove index.php (mod_rewrite) - 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: Remove index.php (mod_rewrite) (/showthread.php?tid=81854) |
Remove index.php (mod_rewrite) - mazz - 05-10-2022 On my ftp I have a subdomain: api.xxx.eu - here are all files from public CI4 folder. My files structure: Quote:- ci4 In api/index.php I updated: PHP Code: $pathsConfig = FCPATH . '../../ci4/app/Config/Paths.php'; I have in ci4/app/Config/App: PHP Code: public $baseURL = 'https://api.xxx.eu/'; api/.htaccess: PHP Code: # Disable directory browsing When I go to https://api.xxx.eu/index.php/home/index all works but when I remove index.php from url I get answer: Quote:No input file specified. RE: Remove index.php (mod_rewrite) - kenjis - 05-10-2022 Try Code: RewriteRule ^([\s\S]*)$ index.php?/$1 [L,NC,QSA] RE: Remove index.php (mod_rewrite) - mazz - 05-11-2022 (05-10-2022, 04:16 PM)kenjis Wrote: Try It works! Thank you RE: Remove index.php (mod_rewrite) - InsiteFX - 05-11-2022 If that doe's not fix your problem you can try this one. Code: # Remove index.php from URL Let's us know how you make out on this. |