Personal Technology Information

404 Error Pages: What Are They And How Do You Create One?


We've all seen them, you've been browsing a website and you click a link and nothing loads apart from the words '404 Error' along with the usual stuff.

So what is a 404 Error page? The 404 Error page, basically informs the user that the server cannot find the file they are looking for. However, instead of using the default 404 Error page you can create your own, this is how you do it.

First, you need your .htaccess file which should be within your web site directory. If you cannot find it you will need to create one. You will have to contact your host asking them how you would go about creating or editing this file. They may want you to use a text editor and then upload it, or they may want you to use a PICO editor and create or edit the file on the server.

How you have access to the .htaccess file lets edit it. Add this line to the .htaccess file:

ErrorDocument 404 http://www.yourdomain.com/404page.html

Make sure this line is kept on online. This is where your 404 Error page is kept.

Now you've change the .htaccess file you need to create the page. This is simply a normal HTML document. Once you've created the HTML document, save it and call it 404page.html. Now the next step is to upload the .htaccess file and the page to the server.

Now that is done your next step is to turn it on. This is done by setting the CHMOD attribute to 644. You can do this via telnet or some FTP programs. If your going to telnet into your server, use the following command:

chmod 644 .htaccess

Now test to see if it's worked. Just go to a page that doesn't exist on your server and you should see your new 404 Error page. If not, then make sure the CHMOD is set correctly, and if that doesn't help, you may want to ask your hosting company for support.

About The Author

I currently own and run a small E-commerce template website located at http://www.sjh-designs.co.uk. You can find several more guides located at http://www.sjh-designs.co.uk/guides.htm.


MORE RESOURCES:

05/18/2024
US Official Warns a Cell Network Flaw Is Being Exploited for Spying
Plus: Three arrested in North Korean IT workers fraud ring, Tesla staffers shared videos from owners’ cars, and more.


more info


05/17/2024
Six-Word Sci-Fi: Stories Written by You
Here's this month's prompt, how to submit, and an illustrated archive of past favorites.


more info


05/17/2024
The 43 Best Movies on Netflix Right Now
“City Hunter,” “Suzume,” and “Spaceman” are just a few of the movies you should watch on Netflix this month.


more info


05/17/2024
The 46 Best Shows on Netflix Right Now
"Dead Boy Detectives," "Chicken Nugget," and "Ripley" are just a few of the shows you need to watch on Netflix this month.


more info


05/17/2024
There’s New Hope for an HIV Vaccine
A trial vaccine has succeeded in generating low levels of antibodies needed to target HIV. It’s a first but much-needed step toward preventing infection.


more info


05/17/2024
The Race to Buy TikTok Is On—but There Might Not Be a Winner
Investors are interested in buying TikTok so that it can avoid a US ban. But even if ByteDance accepts, a takeover will be far from simple.


more info


05/17/2024
OpenAI’s Long-Term AI Risk Team Has Disbanded
The entire OpenAI team focused on the existential dangers of AI has either resigned or been absorbed into other research groups, WIRED has confirmed.


more info


05/17/2024
Elon Musk Finally Puts Twitter Out of Its Misery
Twitter is fully x.com now. Given its transformation since Elon Musk bought it, that may be a small mercy.


more info


05/17/2024
The Best Coolers for Every Kind of Outdoor Adventure
We chugged chilled beverages to bring you our favorite coolers for every situation.


more info


05/17/2024
It’s Time to Believe the AI Hype
Some pundits suggest generative AI stopped getting smarter. The explosive demos from OpenAI and Google that started the week show there’s plenty more disruption to come.


more info


05/17/2024
The Best Cheap Phones for Almost Every Budget
There’s little reason to pay top dollar for a smartphone. These iPhones and Android devices—ranging from $150 to $500—stood up to WIRED’s testing.


more info


05/17/2024
How to Use ‘Circle to Search’ on an Android Phone
There's a new, AI-powered way to search on Android. All it takes is a swish of your finger.


more info


05/17/2024
The 25 Best Outdoor Summer Deals From REI’s Anniversary Sale
It’s the best time of the year to pick up all the tents, stoves, sleeping bags, and gear that you’ll need for summer fun.


more info


05/17/2024
Netflix Isn’t About Flicks Anymore
And it’s not just Netflix—Max, Disney+, and even YouTube are also turning their attention to series, sports, and shorts.


more info


05/17/2024
The 11 Best Early Memorial Day Mattress Deals
Sleep starting to feel less like a luxury? It might be time for a new mattress, and they’re often discounted.


more info


05/16/2024
Amazon Is Hosting a Massive Book Sale
Ebooks, paperbacks, and hardcover editions are deeply discounted through May 20.


more info


05/16/2024
Google’s AI Overviews Are Here, Whether You Want Them or Not
Google’s new Gemini-powered search experience is rolling out to users in the US. Here’s some advice on how to navigate it. And if you want to turn AI Overviews off, too bad.


more info


05/16/2024
How Twitch Streamers Could Shape the 2024 Elections
WIRED talked to political streamer Hasan Piker about Joe Biden, the youth vote, and his advocacy for Gaza.


more info


05/16/2024
The 35 Best Shows on Max (aka HBO Max) Right Now
“Hacks,” “The Jinx,” and “Conan O’Brien Must Go” are just a few of the shows you need to be watching on Max this month.


more info


05/16/2024
Tesla’s Controversial Factory Expansion Is Approved
After anti-Tesla activists clashed with police in Germany last week, local councillors today backed Elon Musk’s plan to make Tesla’s only European Gigafactory even bigger.


more info


05/16/2024
Russian Disinfo Campaign Blames Ukraine for Shooting of Slovakia’s Prime Minister
A seemingly coordinated campaign playing out across X, Telegram, and state-run media blames Ukraine for the attempted assassination of Robert Fico—something for which there is no evidence.


more info


05/16/2024
Jane Schoenbrun Wants to Blow Up Your TV
Growing up, director Jane Schoenbrun escaped into shows like “The X-Files” and “Twin Peaks.” Their new movie, “I Saw the TV Glow,” is about the relief, and danger, of getting lost in screens.


more info


05/16/2024
RFK Jr. Is Priming His Audience for Election Denialism
Robert F. Kennedy’s campaign—and his life’s work—have laid the groundwork for supporters to blame his inevitable loss on an elite conspiracy.


more info


05/16/2024
Which Nanoleaf Smart Lights Should You Buy?
Nanoleaf has some of the coolest smart lighting panels around. Here’s how to choose the right one for your home.


more info


05/16/2024
Lab-Grown Meat Is on Shelves Now. But There’s a Catch
A store in Singapore is selling lab-grown chicken, but it contains only 3 percent animal cells.


more info



home | site map | contact us