0

Hi guys experimenting with .htaccess with XAMPP on my localhost, I have checked with phpinfo() if mod_rewrite is loaded and it is, so that shouldnt be the problem..

This is my .htaccess

RewriteEngine On

RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-l

RewriteRule ^(.+)$ index.php?url=$1 [QSA, L]

and this is the error it gives on every page

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. 

Whats wrong with my htaccess or XAMPP? :)

3
  • Is index.php being executed? What is the url param that gets passed in? Commented Aug 8, 2012 at 18:32
  • is the file index.php realy exists ? Commented Aug 9, 2012 at 1:01
  • index is being passed in, and yes index.php does really exist :) Commented Aug 9, 2012 at 1:13

1 Answer 1

1

$url was empty, make sure you echo out !

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.