Hướng dẫn fix lỗi not found khi cài nukeviet trên aapanel
admin
2024-02-29T06:52:57-05:00
2024-02-29T06:52:57-05:00
http://dacloi.net/nukeviet-20/huong-dan-fix-loi-not-found-khi-cai-nukeviet-tren-aapanel-172.html
http://dacloi.net/uploads/news/2024_02/nukeviet.jpg
Sourcode teamplate free | Nukeviet HCMC | PSD file teamplate | Figma teamplate | Nukeviet
http://dacloi.net/uploads/vncode.png
Bước 1: Đăng nhập vào quản trị AAPANEL
![](/uploads/news/2024_02/image_3.png)
Chọn vào menu Website -> nhấp vào tên website bạn cần rewrite -> chọn tiếp tabs URL Rewrite
![](/uploads/news/2024_02/image_4.png)
Copy đoạn code dưới đây và tiến hành lưu lại
![](/uploads/news/2024_02/image_3.png)
Chọn vào menu Website -> nhấp vào tên website bạn cần rewrite -> chọn tiếp tabs URL Rewrite
![](/uploads/news/2024_02/image_4.png)
Copy đoạn code dưới đây và tiến hành lưu lại
if ($request_filename ~ /robots.txt$){
rewrite ^(.*)$ /robots.php?action=$http_host break;
}
# Thiết lập rewrite chỉ có từ NukeViet 4.3.00
rewrite ^/install/check\.rewrite$ /install/rewrite.php break;
rewrite ^/(.*?)sitemap\.xml$ /index.php?nv=SitemapIndex break;
rewrite "^/(.*?)sitemap\-([a-z]{2})\.xml$" /index.php?language=$2&nv=SitemapIndex break;
rewrite "^/(.*?)sitemap\-([a-z]{2})\.([a-zA-Z0-9-]+)\.xml$" /index.php?language=$2&nv=$3&op=sitemap break;
if (!-e $request_filename){
rewrite (.*)(\/|\.html)$ /index.php;
rewrite /(.*)tag/(.*)$ /index.php;
}
rewrite ^/seek\/q\=([^?]+)$ /index.php?nv=seek&q=$1 break;
rewrite ^/search\/q\=([^?]+)$ /index.php?nv=news&op=search&q=$1 break;
rewrite ^/([a-zA-Z0-9\-]+)\/search\/q\=([^?]+)$ /index.php?nv=$1&op=search&q=$2 break;
rewrite ^/([a-zA-Z0-9-\/]+)\/([a-zA-Z0-9-]+)$ /$1/$2/ break;
rewrite ^/([a-zA-Z0-9-]+)$ /$1/ break;
location ~ ^/admin/([a-z0-9]+)/(.*)$ {
deny all;
}
location ~ ^/(config|includes|install|vendor)/(.*)$ {
deny all;
}
location ~ ^/data/(cache|ip|ip6|logs)/(.*)$ {
deny all;
}
location ~ ^/(files|uploads|themes)/(.*).(php|ini|tpl|php3|php4|php5|phtml|shtml|inc|pl|py|jsp|sh|cgi|txt)$ {
deny all;
}
location / {
try_files $uri $uri/ /index.php?$args;
}
Chúc các bạn thành côngTác giả: admin
Ý kiến bạn đọc
Bạn cần đăng nhập với tư cách là Thành viên chính thức để có thể bình luận
Những tin mới hơn
Những tin cũ hơn
-
Hướng dẫn sử dụng module Affiliate trong Nukeviet CMS
(19/02/2024) -
Tắt recaptcha của NukeViet nếu bạn không login được
(10/01/2024) -
Xử lý khi url index.php trên website NukeViet CMS 4.5.x
(10/01/2024) -
Xử lý lỗi không chèn iframe ở chế độ soạn thảo HTML ở NukeViet 4.5.04
(10/01/2024) -
Hướng dẫn fix lỗi in hoá đơn trong module shops nukeviet
(10/01/2024) -
Hướng dẫn thêm nhiều tài khoản quản trị tối cao trong Nukeviet
(04/01/2024) -
Chia sẻ full sourcode giao diện quay số trúng thưởng cuối năm - nukeviet cms
(22/12/2023) -
Hướng dẫn fix lỗi "Đăng nhập quản trị báo thành công" nhưng bị đẩy ra
(08/11/2023) -
Hướng dẫn khắc phục lỗi trình soạn thảo NukeViet Ckeditor phần iframe
(08/11/2023)
Hỏi đáp với tôi
close- smart_toy Hi there 👋 How can I help you today?
send