sorry, htaccess problem (?) |
[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..
[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.
[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
[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 ![]()
|
Welcome Guest, Not a member yet? Register Sign In |