CodeIgniter Forums
CI4 and Ubuntu 20.04, pretty URLs not working - 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: CI4 and Ubuntu 20.04, pretty URLs not working (/showthread.php?tid=76348)



CI4 and Ubuntu 20.04, pretty URLs not working - John_Betong - 05-05-2020

Has anyone upgraded to Ubuntu 20.04 and managed to get Pretty URLs working?

When browsing to a Pretty URL the browser message "Unable to find URL" shows.  There is no Apache2 or CI4 error messages? 

I have reinstalled Apache2, MySql, PHP, "sudo a2enmod rewrite", .htaccess modified umpteen times, double and triple checked everything, rebooted and all without success Sad

I have gone back to Ubuntu 18.04 LTS because it works.


RE: CI4 and Ubuntu 20.04, pretty URLs not working - skunkbad - 05-05-2020

AllowOverride All?


RE: CI4 and Ubuntu 20.04, pretty URLs not working - John_Betong - 05-16-2020

(05-05-2020, 08:58 PM)skunkbad Wrote: AllowOverride All?
Many thanks for the suggestion.

I left the computer on and it overheated and required a reboot so...

Rebooted into Ubuntu  20.04, applied the updates, tried Pretty Urls and they worked!!!

Don't you love computers Smile

checked /etc/apache2/sites-available/000-default.conf
Code:
# John 2020-05-05
  <Directory /var/www>
    Options Indexes FollowSymLinks MultiViews
    AllowOverride All
    Require all granted
  </Directory>