redirect on 404 error not working

Posted on 2009-12-17
Last Modified: 2013-11-08
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", ""

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

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

Question by:TrueBlue
    LVL 31

    Accepted Solution

    Ensure the path for the 404.asp page entered in URL of the custom errors configuration is reachable through web server.

    Author Comment

    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.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Looking for New Ways to Advertise?

    Engage with tech pros in our community with native advertising, as a Vendor Expert, and more.

    Over the last ten+ years I have seen Linux configuration tools come and go. In the early days there was the tried-and-true, all-powerful linuxconf that many thought would remain the one and only Linux configuration tool until the end of times. Well,…
    If you have a server on collocation with the super-fast CPU, that doesn't mean that you get it running at full power. Here is a preamble. When doing inventory of Linux servers, that I'm administering, I've found that some of them are running on l…
    Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
    Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

    779 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    15 Experts available now in Live!

    Get 1:1 Help Now