Welcome Guest, Not a member yet? Register   Sign In
sorry, htaccess problem (?)
#1

[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..
#2

[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.
#3

[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
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /index.php/$1 [L]
#4

[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. Sad


--&gt; thanks for replies. I solved, huh Tongue.
#5

[eluser]AskoJr[/eluser]
This helped me aswell, thanks Smile




Theme © iAndrew 2016 - Forum software by © MyBB