![]() |
sorry, htaccess problem (?) - 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: sorry, htaccess problem (?) (/showthread.php?tid=13131) |
sorry, htaccess problem (?) - El Forum - 11-12-2008 [eluser]melpuggi[/eluser] hello, i have a problem with htaccess i am using lamp on ubuntu and the directory path = 'var/www' content of => sites-available/default = ' <Directory /var/www/> Options Indexes Includes FollowSymLinks Multiviews AllowOverride All Order deny,allow Allow from all </Directory>' content of .htaccess = 'RewriteEngine on RewriteCond $1 !^(index\.php|images) RewriteRule ^(.*)$ index.php/$1 [L]' any links on localhost/link give me "Internal Server Error" no error in site files maybe htaccess, or httpd.conf which one? what is my problem, thanks for your helps.. sorry, htaccess problem (?) - El Forum - 11-12-2008 [eluser]maesk[/eluser] Try this for your .htaccess file: [code] <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_URI} !^(/index\.php|/images|/js|/css) RewriteRule ^(.*)$ index.php?/$1 [L] </IfModule> [code] There might be an (additional) problem in your Apache default config file though. sorry, htaccess problem (?) - El Forum - 11-12-2008 [eluser]GSV Sleeper Service[/eluser] have a look in your apache error log, that should give more details as to what's going wrong. I've never been a fan of the suggested .htaccess, I put javascript in a js folder, css in another folder etc. this version will only pass anything that isn't a file or a directory to index.php Code: RewriteEngine on sorry, htaccess problem (?) - El Forum - 11-12-2008 [eluser]melpuggi[/eluser] error_log : [Wed Nov 12 17:57:40 2008] [error] [client 127.0.0.1] File does not exist: /var/www/site/game, referer: http://localhost/site/ i have tried them and mod_rewrite is working on my server. ![]() --> thanks for replies. I solved, huh ![]() sorry, htaccess problem (?) - El Forum - 09-29-2010 [eluser]AskoJr[/eluser] This helped me aswell, thanks ![]() |