![]() |
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: Requested URL was not found on this server (/showthread.php?tid=33899) Pages:
1
2
|
Requested URL was not found on this server - El Forum - 09-13-2010 [eluser]WanWizard[/eluser] The minumum rights to allow a .htaccess to work are Code: AllowOverride FileInfo To test if your .htaccess is picked up at all, create a syntax error. If Apache processes it, it will complain about it. Requested URL was not found on this server - El Forum - 09-13-2010 [eluser]1cookie[/eluser] hi [quote author="pickupman" date="1284403468"]Have you allowed .htaccess files in your apache config? Not in ubuntu right now, but I believe it's /etc/apache2/conf/httpd.conf (or site-default). You need to have Code: AllowOverride All [/quote] edit: <del> That's strange, my Code: httpd.conf Code: /etc/apache2/httpd.conf </del> forget that! I'm told that The Debian and hence Ubuntu apache2 used apache2.conf, not httpd.conf. And here's a snippet from apache2.conf Code: # No AllowOverride directive listed though? Quote:The apache error means it's not getting to CI. CI has it's own 404 error. Out of curiosity what happens if you remove the leading / from /index.php in your .htaccess? Or better yet, try using just this in .htaccess In your example above, are you referring to a new .htaccess file as: Code: <IfModule mod_rewrite.c> ![]() Requested URL was not found on this server - El Forum - 09-13-2010 [eluser]pickupman[/eluser] Yes, try the simple .htaccess file. And you are right, I wasn't on my laptop so I had forgotten the correct path to the conf file. You may also find the directive in /etc/apache2/conf/sites-default. Try the simpler less secure AllowOverride All if you are working local. Make things the easiest to get up and running, and then you can work on increasing security later. Requested URL was not found on this server - El Forum - 09-13-2010 [eluser]1cookie[/eluser] hi I now have: Code: Alias /manual /usr/share/doc/apache2-doc/manual/ Code: apache2-doc Code: etc/apache2/conf.d/apache2-doc And, my .htaccess file is as: Code: <IfModule mod_rewrite.c> but still, the page wont load! :O Requested URL was not found on this server - El Forum - 09-13-2010 [eluser]pickupman[/eluser] That's not the right path. Code: etc/apache2/conf.d/apache2-doc It's in Code: /etc/apache2/sites-available/default Requested URL was not found on this server - El Forum - 09-13-2010 [eluser]1cookie[/eluser] hi [quote author="pickupman" date="1284410329"]That's not the right path. Code: etc/apache2/conf.d/apache2-doc It's in Code: /etc/apache2/sites-available/default I'm now editing the 'default' file, located as above. Following my edits, the file now looks like: Code: <VirtualHost *:80> I save the changes, restart Apache, and run the script to get: Code: Internal Server Error Upon reading the server error.log file, i see: Code: [Mon Sep 13 16:51:59 2010] [alert] [client 127.0.0.1] /var/www/CodeIgniter/.htaccess: <IfModule> directive requires additional arguments ![]() Requested URL was not found on this server - El Forum - 09-13-2010 [eluser]pickupman[/eluser] Just use what I posted once, without the <IfModule>. Requested URL was not found on this server - El Forum - 09-13-2010 [eluser]1cookie[/eluser] [quote author="pickupman" date="1284413170"]Just use what I posted once, without the <IfModule>.[/quote] Yay, success!! My last clean install was on a Windows box, bit more tricky with Linux. ![]() ![]() Requested URL was not found on this server - El Forum - 09-13-2010 [eluser]pickupman[/eluser] Glad you got it working. It's not so much CI, but getting apache set up right. Thankfully this got alot easier in ubuntu with 10.04. |