Change default error 403 page?

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

Change default error 403 page?

Postby FileGeek » 28. July 2012 22:22


Is there anyway to change that to say something else like This website is now closed?

Due to not wanting certain users to know they're banned by IP ahha
Posts: 1
Joined: 28. July 2012 22:20
Operating System: Windows

Re: Change default error 403 page?

Postby JonB » 29. July 2012 01:00

OK - Simple Answer:

\xampp\apache\error\HTTP_FORBIDDEN.html.var is the template file that is used for that message.

You can make changes to that file to change the output text. You may also need to make changes to the 'include' files as well.

Just remember the message they receive is driven by their browser/OS language choice, so if you have 'global' traffic - you will need to make multiple changes.

Good Luck
User avatar
AF Moderator
Posts: 3210
Joined: 12. April 2010 16:41
Location: Land of the Blazing Sun
Operating System: Windows XP/7 - Fedora 15 1.7.7

Re: Change default error 403 page?

Postby Altrea » 29. July 2012 01:57

JonB posted one common and possible solution.

Another one would be to define a new error document depending on for example on a specific application.
For that Apache knows the directive ErrorDocument.
This directive can be used in .htaccess Files or VirtualHost definitions too.

best wishes,
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: 10201
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