XAMPP - How to Enable Redirect with .htaccess

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

XAMPP - How to Enable Redirect with .htaccess

Postby tfliam » 12. December 2009 02:47

Hi, I have just installed xampp-win32-1.7.2.exe last night and been researching and keep trying the whole night and still can't get it work!

Basically whereever (anywhere in C:\xampp\htdocs\xampp\ of coz) I put my .htaccess, it will display the error below:

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
12/12/2009 9:35:17 AM
Apache/2.2.12 (Win32) DAV/2 mod_ssl/2.2.12 OpenSSL/0.9.8k mod_autoindex_color PHP/5.3.0 mod_perl/2.0.4 Perl/v5.10.0

And the error I get from the error.log in apache folder is
[Sat Dec 12 09:25:31 2009] [alert] [client] C:/xampp/htdocs/xampp/.htaccess: Redirect not allowed here

I have checked the file 'httpd.conf' under C:\xampp\apache\conf

The rewrite module is uncommented as below
LoadModule rewrite_module modules/mod_rewrite.so

and I have changed all the
AllowOverride None
AllowOverride All

And I also make sure that I have restarted Apache... So what's still the problem?

The redirect works perfectly fine in a remote server....
Posts: 2
Joined: 12. December 2009 02:26

Re: XAMPP - How to Enable Redirect with .htaccess

Postby Izzy » 12. December 2009 02:58

First, return your configuration files back to their original settings as you don't need to configure anything differently to the default settings to get your files to work.

Your files and folders like your .htaccess are not allowed in the C:\xampp\htdocs\xampp folder as this folder is reserved for use by XAMPP.

Next, put your own files and folders directly in the C:\xampp\htdocs folder and they will work as pointed out in the readme file linked below - you can delete the 2 XAMPP index files already in the htdocs folder and replace with your own index file.

Then to access the XAMPP Welcome Demo Page type in your browser:

To access your own index file type:

More helpful reading for new XAMPP users:
\xampp\readme_en.txt file
Posts: 3344
Joined: 25. April 2006 17:06

Re: XAMPP - How to Enable Redirect with .htaccess

Postby tfliam » 12. December 2009 03:22

Yes... it works... Thanks a lot!!
Posts: 2
Joined: 12. December 2009 02:26

Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 70 guests