Home WebServer PanelaaPanel How to fix error 404 on aaPanel

How to fix error 404 on aaPanel

by Thạch Phạm
Published: Last Updated on
A+A-
Reset

In today’s article, I will guide you to fix 404 errors on aaPanel, as well as explain the cause of this error.

I. Causes of error 404 on aaPanel

The common causes that will lead to error 404 on aaPanel are known:

  • Case 1: The path or file does not exist.
  • Case 2: There is no .htaccess file, so the subsites get an error 404 (the home page is still accessible)
  • Case 3: There is a .htaccess file, but URL Rewrite is not enabled, so the subsites still get an error 404 (the homepage is still accessible)

In this article, AZDIGI will show you how to fix error 404 on aaPanel in case 3. Because the other two cases are relatively basic and you rarely have to meet. And case 3, you will often encounter this when you just added a new website and uploaded data.

1

This error only occurs when you only use the web server Nginx or Nginx Tengine. As the default Apache web server already fully supports htaccess, you can skip this article.

If you want to switch webserver from Nginx to Apache, you can refer to the following tutorial:

II. Fix error 404 on aaPanel

To fix error 404 on aaPanel, we follow these 2 steps.

Step 1: Access the aaPanel admin page

To access the aaPanel admin interface, we access the link http://IP:8888 on the browser.

Remember to change the IP to your IP aaPanel server.

Below is my aaPanel interface:

Screen Shot 2020 11 08 at 10.40.11 AM
The management interface of aaPanel.

After accessing the aaPanel admin page, we continue to step 2 to enable URL Rewrite for the website with error 404.

Step 2: Enable URL Rewrite for the website that is getting the error 404

At this step, you need to access the list of websites on aaPanel according to the following image:

2

Then you choose the website’s domain name, you get the error 404.

3
Website list interface on aaPanel.

After selecting the website to fix the error, a website configuration frame will appear as shown below. And we will use the URL rewrite feature.

how-to-fix-error-404-on-aapanel-nginx
Detailed configuration interface of a website on aaPanel.

On this window, you choose your site type in the Rewrite rule converter section. For example, with my WordPress site, I will choose as shown below and finally click Save.

how-to-fix-error-404-on-aapanel-nginx
The interface of the URL Rewrite feature.

After saving, you wait for a while to be able to fix the 404 error on aaPanel successfully and the subpages of this site can be accessed normally.

III. Summary

With just two simple steps, we successfully fixed error 404 on aaPanel. This error won’t happen on Apache because Apache itself already supports 100% rewrites on htaccess. As for Nginx, they will need to be recompiled for Nginx to understand.

Hope this article will be of help to you. Wishing you success!

See more useful articles about aaPanel at the following link:

If you need assistance, you can contact support in the ways below:

Đánh giá

Tham gia nhóm hỗ trợ Server - Hosting

Tham gia nhóm Hỗ trợ Server - Hosting & WordPress để cùng nhau hỏi đáp và hỗ trợ các vấn đề về WordPress, tối ưu máy chủ/server.

Tham gia ngay

Bài viết cùng chuyên mục

AZDIGI – Không chỉ là đơn vị hàng đầu trong lĩnh vực Web Hosting và Máy chủ, chúng tôi mong muốn mang lại những kiến thức bổ ích nhất và luôn cập nhật thường xuyên cho cộng đồng người đam mê thiết kế website, công nghệ,…

Vui lòng không sao chép nội dung nếu chưa xin phép. Designed and Developed by PenciDesign