Sponsored Content
Top Forums Web Development New "Page Not Found" (404) Page Post 303026023 by Neo on Sunday 18th of November 2018 12:15:44 AM
Old 11-18-2018
New "Page Not Found" (404) Page

Made some changes to the forum, so when a page is not found and generates a 404 error, the site redirects to "Today's Posts" page and added a "Not Found" message:

Code:
<?php
header('HTTP/1.0 404 Not Found', true, 404);
header("Location: https://www.unix.com/search.php?do=getdaily&redirect=404");
die();
?>

Results, for example:

Image
This User Gave Thanks to Neo For This Post:
 

4 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

"Elements per page"... seeking ideas...

I work for a web hosting company uses Apache. We like to come up with composite models of what our customers do so that we can tailor our servers to what they need. One question we like to answer is, "For a given page downloaded from our customer's virtual server, what is the mean number of... (2 Replies)
Discussion started by: treesloth
2 Replies

2. Web Development

CGI not working with httpd server on busybox 1.15.0 on ltib Linux 2.6.34 (404 page not found)

I have some industrial ARM linux board with 2.6.34 Linux on it with Busybox v1.15.0. The https.conf is located in /etc/ and contains: H:/root/web In the www directory I also have 'cgi-bin' folder with chmod 777 and in that folder a file called 'testcgi'. Now I start the server with... (1 Reply)
Discussion started by: Roboserg
1 Replies

3. Web Development

Quick Fix for Google Search Console "Page is not mobile friendly"

Over the past 10 plus years, we have countless posts where the user did not use CODE tags or they used ICODE tags incorrectly. This has has the results of this site penalized by Google for having pages which are "not mobile friendly". So, working quietly in the background, in the thankless... (0 Replies)
Discussion started by: Neo
0 Replies

4. What is on Your Mind?

New Responsive 404 Page for UNIX.com

Just created (actually, only modified... it was created by ShoutOut) a new responsive 404 "not found" page with the help of ShoutOut free templates. https://www.unix.com/status/404.html Same for 401 and 403 errors. Picture sans animation: ... (2 Replies)
Discussion started by: Neo
2 Replies
CCD2ISO(1)							   User Commands							CCD2ISO(1)

NAME
ccd2iso - convert IMG format to ISO format SYNOPSIS
ccd2iso [FOO.IMG] [BAR.ISO] DESCRIPTION
ccd2iso converts FOO.IMG to ISO format and writes the result to BAR.ISO. If fewer arguments than expected are given, ccd2iso will print its help message and quit. If more arguments than expected are given, ccd2iso will silently ignore them and use only the first two argu- ments. IMG files are raw-data copies of optical media, generated primarily by the Windows application CloneCD, and are primarily used to store CDs with odd properties, such as sectors which need to have read errors when read. Conversion to ISO format removes this information, as ISO format does not support this. IMG files almost always include a SUB file, which contains additional data for the disc format, and a CCD file, which is a plaintext con- figuration file describing the disc layout. ccd2iso does not make use of these files, but the applications which generate them expect them to have the same FOO prefix as the IMG file. LIMITATIONS
ccd2iso currently only copies the first session of multisession discs, as well as outputting a harmless warning of Unrecognized sector mode. ccd2iso utterly ignores the additional data in CCD or SUB files. SEE ALSO
mdf2iso(1), nrg2iso(1) AUTHOR
This manual page was written by Rich Ercolani <rercola@acm.jhu.edu>, for the Debian GNU/Linux distribution (but it may, of course, be used by others), because the original program lacked a manual page. It may be distributed under the same terms as ccd2iso, the GNU GPL version 2 or later, at your option. ccd2iso 0.3 June 2006 CCD2ISO(1)
All times are GMT -4. The time now is 10:24 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy