CodeIgniter Forums
The requested URL was not found on this server. - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21)
+--- Thread: The requested URL was not found on this server. (/showthread.php?tid=60982)



The requested URL was not found on this server. - El Forum - 08-18-2014

[eluser]bazianm[/eluser]
Hi all.

I just switched to Ubuntu 14.04 desktop for development so this can be the cause of this problem but I am not sure.

I have a site. Works fine in production (*nix server) and when I was working with XAMPP in windows. I downloaded the code and setup the database on my ubuntu machine. I have setup the virtual host and I finally got my login screen so I know the vhost is OK.

The login screen captures the input and sends it off to /login/verify (i.e., the verify method of the login controller) for validation. Like I said, it works great in production. In development, I am getting the following error message:

Quote:The requested URL /login/verify was not found on this server.

My .htaccess file is there and I enabled mod_rewrite. Am I missing something here? I could use any assistance you can offer.

Thanks in advance...






The requested URL was not found on this server. - El Forum - 08-18-2014

[eluser]CroNiX[/eluser]
You might need to adjust $config['uri_protocol'] as not all servers are set up the same.


The requested URL was not found on this server. - El Forum - 08-19-2014

[eluser]bazianm[/eluser]
I tried all of the options with no effect...


The requested URL was not found on this server. - El Forum - 08-19-2014

[eluser]bazianm[/eluser]
OK. I got it.

I am coming to hate Ubuntu 14.04. I am not sure if it the OS or Apache (probably Apache) but it is giving all kinds of hissy fits.

The problem was that Apache was not reading the .htaccess file. I added a directory section to the VH conf and now it works.

That's three hours of my life I wish I had back.

Thanks for the assist!