• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 760
  • Last Modified:

redirect on 404 error not working

Hi!
We added a page named 404.asp and turned on custom error pages in Plesk.
This page contains the following:

<%@ Language=VBScript %>
<%
' Permanent redirection
Response.Status="301 Moved Permanently"
Response.AddHeader "Location", "http://www.domain.com/"
Response.end
%>

If someone trys to go to a none existent page we want them forwarded to our main page.
Currently,
They get the following...

Not Found
The requested document was not found on this server.


0
TrueBlue
Asked:
TrueBlue
1 Solution
 
Henrik JohanssonSystems engineerCommented:
Ensure the path for the 404.asp page entered in URL of the custom errors configuration is reachable through web server.
0
 
TrueBlueAuthor Commented:
henjoh09,
In Plesk you can only click to have custom error pages or not too. It does not ask you were they are located. I have it in the httpdocs directory.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now