dir.by  
Поиск >>

Компьютер, программы
→
Website creation and management (site registration, copying files to the site, database saving)
 cPanel - если страница сайта не найдена покзываем html страницу 
посмотрели 6807 раз
обновлено: 5 February 2020
На сайте нет страницы https://dir.by/hello/aaa
При загрузке видим сообщение об ошибке
Решение! Показываем html страницу в случае ошибки
В таком случае пользователь может легко нажать на ссылку и перейти на главную страницу сайта если какая-то страница сайта была удалена.
Как сделать?
Открываем cPanel...
Нажимаем на Страницы ошибок
Открылась "Страница ошибок"
Нажимаем на 404 (Не найден)
Вводим html
Пример (исходный код)
  Html  
<HEAD>
<meta http-equiv='Content-Type' content='text/html;charset=utf-8' >
</HEAD>

<center>
<div style='padding-left:0px; padding-top:10px; line-height:24px;     font-size: 20px; font-family:Times New Roman;'>
     Страница
     <font style='background-color:#DAF0DA'>
          <b> dir.by<!--#echo var="REQUEST_URI" --> </font></b>
          не найдена!
     <div style='padding-top:20px;'>
          Перейти на
          <a href=https://dir.by>
               <b><font color='blue'>dir.by</font></b>
          </a>
     </div>
</div>
</center>

<!--
-->
 
← Previous topic
cPanel - saving a copy of the site (files)
 
Next topic →
cPanel - creating a subdomain
 
Your feedback ... Comments ...
   
Your Name
Your comment (www links can only be added by a logged-in user)

Новость "Черная пятница" Dreame в Беларуси – две недели скидок до 3400 рублей
 
• Website registration (choose a name, buy a domain)
• Placement of the site on a computer (hosting)
• Adding, configuring mail for your site (on hoster.by hosting)
• Copying files via FTP (Far, Windows Explorer)
cPanel - Hosting Control Panel
• What is cPanel?
• cPanel - Creating a Database
• cPanel - saving a copy of the site (files)
• cPanel - if the site page is not found, provide the html page
• cPanel - creating a subdomain
• cPanel - Let"s Encrypt certificate setup (UNIX hosting)
• cPanel - change the password to FTP and cPanel (the same password is used)
ISPmanager - панель управления хостингом
• ISPmanager - если страница сайта не найдена покзываем html страницу

  Ваши вопросы присылайте по почте: info@dir.by