.htaccess file and VirtualHost container

Problems with the Windows version of XAMPP, questions, comments, and anything related.

.htaccess file and VirtualHost container

Postby dvaeer » 31. October 2010 07:42

Hi everyone,

Just some info that might help anyone getting frustrated over getting VirtualHost containers to work (like me :))

I have several virtualhost containers setup, all working perfectly. Only one just wouldn't work and I couldn't find out why. The setup was exactly the same as the other ones, but whatever I tried I kept getting an internal database error (error 500). I searched everywhere, and tried everything, but nothing worked. I was about to post my problem here.

But then, on a hunch, I had another look at the files in my local directory and saw a .htaccess file in there with some redirects in it. Again on a hunch (I was at the stage where I was just trying everything), I temporarily deleted the .htaccess file, restarted apache, and voila: everything worked. GREAT!

So if you you also have a .htaccess file in your local development directory, and you keep getting an internal server error with your VirtualHost container, try removing the .htaccess file and see if that solves the problem.

Hope this helps anyone.
Posts: 1
Joined: 30. October 2010 18:05

Re: .htaccess file and VirtualHost container

Postby Altrea » 31. October 2010 11:37

First thing to do, if you get an HTTP Error Code, take a look into the Apache error log file (xampp\apache\logs\error.log).
Apache logs whats going wrong. Thats a good hint to know, where to look next.
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
AF Moderator
Posts: 8413
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 10 Pro x64

Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 52 guests