Mind blowing SEO improving and Google rank increasing Signature Rotator SEO Tool.

Thread: 

.htaccess 404 redirect

Ads
destroyer Offline referral

Posts: 430
Joined: Jul 2013
Reputation: 3

#1
Senior Member
I am heaving trouble setting up .htaccess 404 redirect on my XAMPP server
I use this code
Code:
# Redirect:
ErrorDocument 404 /not-found.html

Bu a default Apache 404 not found shows not mine any idea how to fix that ?
marcus_avrelius Offline referral

Posts: 2,424
Joined: May 2013
Reputation: 102

#2
Support Team
XAMPP is not your average webhosting so to make this work you need to specify full path to your not-found.html page

Lets say all you files are located in the TEST folder so you access it like so:
localhost/test
and if your not-found.html page is located in the same folder then the correct path is going to be.

Code:
# Redirect:
ErrorDocument 404 /test/not-found.html
chod Offline referral

Posts: 860
Joined: Jul 2013
Reputation: 85

#3
Posting Freak
It has to be in the location your calling. So the way you have it needs to be in the root folder of what ever directory your XAMPP is serving from.
www.AdminEmpire.com
www.BlimptonTech.com - Best Free Online JavaScript tool to minify JavaScript files.
destroyer Offline referral

Posts: 430
Joined: Jul 2013
Reputation: 3

#4
Senior Member
Thanks very much guys I have my files in website01 folder so I added this code to my .htaccess file and bingo it works
Code:
# Redirect:
ErrorDocument 404 /website01/not-found.html





User(s) browsing this thread: 1 Guest(s)