Playback starts YouTube’s embedded player (privacy-enhanced mode).
How to create a custom 404 message on Apache
Channelsolron75Description from the creator
How to create a custom 404 message on Apache
You can find the written instructions here:
soltveit.org/apache-custom-404-pages/
This example is done on a Debian machine. Should be the same on most Linux distros. Not sure if the AllowOverride setting is done the same way on all Linux distros (Or where the sites-available files are).
The standard 404 (Page not found) is enough for telling someone the page they are looking for is not there. However you can use that 404 traffic to share funny pages, or redirect them to your main page. Or you can promote product, adverts and such. What ever you want to use your 404 traffic for. Here is how you do it.
Ssh into your web server, if your not local, and navigate to your root folder of your website.
Example: /var/www/example.com/
Create a .htaccess file if you don't have one from before. And add this to your .htaccess file.
ErrorDocument 404 /404.html
The above line says if a 404 error, go to 404.html. And this example assume the 404.html file is located in the website root folder.
Example of a 404.html file: See the link above as YouTube doesn't allow brackets.
Anyway, happy redirecting!
You can find the written instructions here:
soltveit.org/apache-custom-404-pages/
This example is done on a Debian machine. Should be the same on most Linux distros. Not sure if the AllowOverride setting is done the same way on all Linux distros (Or where the sites-available files are).
The standard 404 (Page not found) is enough for telling someone the page they are looking for is not there. However you can use that 404 traffic to share funny pages, or redirect them to your main page. Or you can promote product, adverts and such. What ever you want to use your 404 traffic for. Here is how you do it.
Ssh into your web server, if your not local, and navigate to your root folder of your website.
Example: /var/www/example.com/
Create a .htaccess file if you don't have one from before. And add this to your .htaccess file.
ErrorDocument 404 /404.html
The above line says if a 404 error, go to 404.html. And this example assume the 404.html file is located in the website root folder.
Example of a 404.html file: See the link above as YouTube doesn't allow brackets.
Anyway, happy redirecting!
About this tutorial
solron75 published this 3:37 video tutorial on October 28, 2015. It has been watched 4,782 times on YouTube.
- Channel
- solron75
- Category
- Science & Technology
- Duration
- 3:37
- Published
- October 28, 2015
- Views
- 4,782
- Likes
- 26
Tags
Share
This tutorial in other languages
- FRComment créer un message d'erreur 404 sur Apache
- ESCómo crear un mensaje personalizado 404 en Apache
- PTComo criar uma mensagem personalizada 404 no Apache
- ITCome creare un messaggio personalizzato 404 su Apache
- DEWie eine benutzerdefinierte 404-Nachricht auf Apache erstellen
- NLHoe maak je een aangepaste 404-bericht op Apache creëren
- RUКак создать сообщение 404 на Apache
- PLJak utworzyć niestandardowy 404 wiadomości na serwerze Apache
- JAApacheの上にカスタム404メッセージを作成する方法
- ARكيفية إنشاء رسالة مخصصة 404 على اباتشي
- HIअपाचे पर एक कस्टम 404 संदेश बनाने के लिए कैसे
- IDCara membuat pesan khusus 404 pada Apache