Solved

redirect with 404.shml file

Posted on 2015-02-23
3
108 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 76

Accepted Solution

by:
arnold earned 500 total points
Comment Utility
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
Comment Utility
Got it... thx
0
 
LVL 11

Expert Comment

by:RedLondon
Comment Utility
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

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Suggested Solutions

Introduction We as admins face situation where we need to redirect websites to another. This may be required as a part of an upgrade keeping the old URL but website should be served from new URL. This document would brief you on different ways ca…
These days socially coordinated efforts have turned into a critical requirement for enterprises.
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
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…

743 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

14 Experts available now in Live!

Get 1:1 Help Now