Welcome Guest, Not a member yet? Register   Sign In
Weird .htaccess problem
#1

[eluser]matthewr[/eluser]
Hi, I'm having a very weird htaccess problem. I keep getting this error whenever my htaccess file is in the directory

Code:
Server error!

The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there was an error in a CGI script.

If you think this is a server error, please contact the webmaster.
Error 500
localhost
05/07/08 23:39:22
Apache/2.2.4 (Win32) DAV/2 mod_ssl/2.2.4 OpenSSL/0.9.8e mod_autoindex_color PHP/5.2.2

When I delete htaccess it's fine. It's weird cause i reformatted my pc and this site used to work, now it doesnt.

Here's what's in the htaccess file

Code:
RewriteEngine on
RewriteCond $1 !^(index\.php|images|robots\.txt|css|js|assets|backend.php|codex)
RewriteRule ^(.*)$ index.php/$1 [L]

Ideas anyone? Sorry, but i'm not that good with htaccess files. Hope someone can help me out.
#2

[eluser]m4rw3r[/eluser]
Have you switched on htaccsess in your httpd.conf?
#3

[eluser]Jakob Buis[/eluser]
You need to escape that dot in "backend.php"

Code:
RewriteEngine on
RewriteCond $1 !^(index\.php|images|robots\.txt|css|js|assets|backend\.php|codex)
RewriteRule ^(.*)$ index.php/$1 [L]

I don't know if that will solve your error, but it's a good thing to do nonetheless

If it didn't help, try reducing the problem by taking things out of the regex
#4

[eluser]matthewr[/eluser]
How do i check if htaccess is switched on in my httpd.conf?
#5

[eluser]Unknown[/eluser]
mee too got an error like that.. my htaccess file contains this texts.

Code:
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /index.php/$1 [L]


and in my httpd.conf has this configuration

AllowOverride All

need reply.. asap...

thanks..




Theme © iAndrew 2016 - Forum software by © MyBB