Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

redirect with 404.shml file

Posted on 2015-02-23
3
Medium Priority
?
25,587 Views
Last Modified: 2015-02-24
Is there a simple way to redirecr a page whena 404 error is found, using cpanel?
0
Comment
Question by:robrodp
3 Comments
 
LVL 80

Accepted Solution

by:
arnold earned 2000 total points
ID: 40627517
You need to use/setup a custom errors in the config of the web server.

Presumably this is an Apache web server?

ERRORDOCUMENT error document or url to open
ErrorDocument 404 http://somesite

http://httpd.apache.org/docs/2.2/custom-error.html
0
 

Author Closing Comment

by:robrodp
ID: 40627527
Got it... thx
0
 
LVL 11

Expert Comment

by:RedLondon
ID: 40627626
I realise the question is closed but the question was "using cPanel".  Yes.  cPanel tries to serve the file /404.shtml by default, but usually gives a plain error 500 page saying that it had a 404, failed to find either 404.shtml or 500.shtml.

The cPanel page at https://YOURSERVER.com:2083/frontend/x3/err/index.html lets you enter text to display as 404.shtml, 500.shtml and the others.

Obviously creating/editing a .htaccess file isn't hard, but it is beyond a lot of people.  Using that cPanel page shouldn't be beyond many, certainly not any of the people who would know to worry about that kind of thing.
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article discusses how to create an extensible mechanism for linked drop downs.
In part one, we reviewed the prerequisites required for installing SQL Server vNext. In this part we will explore how to install Microsoft's SQL Server on Ubuntu 16.04.
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 match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
Suggested Courses

971 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