Bỏ index.php trong URL sau domain

Khi gõ địa chỉ domain.com lên trình duyệt, thay vì URL vẫn gữ nguyên domain.com/ thì URL website xuất hiện domain.com/index.php. Điều này chứng tỏ website chưa cấu hình đặt rewrite. Hẩy vào admin để kích hoạt chức năng này. Nhưng trường hợp đã kích hoạt rồi mà vẫn bị thì cần xem lại file .htaccess. Thêm đoạn code sau vào phần dưới cùng :
##################################################################################
#nukeviet_rewrite_start //Please do not change the contents of the following lines
##################################################################################
#Options +FollowSymLinks
<IfModule mod_rewrite.c>
RewriteEngine On
#RewriteBase /
RewriteCond %{REQUEST_FILENAME} /robots.txt$ [NC]
RewriteRule ^ robots.php?action=%{HTTP_HOST} [L]
RewriteRule ^(.*?)Sitemap\.xml$ index.php?nv=SitemapIndex [L]
RewriteRule ^(.*?)Sitemap\-([a-z]{2})\.xml$ index.php?language=$2&nv=SitemapIndex [L]
RewriteRule ^(.*?)Sitemap\-([a-z]{2})\.([a-zA-Z0-9-]+)\.xml$ index.php?language=$2&nv=$3&op=Sitemap [L]
RewriteRule ^((?!http(s?)|ftp\:\/\/).*)\.(css|js)$ CJzip.php?file=$1.$3 [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule (.*)(\/)$ index.php
</IfModule>
#nukeviet_rewrite_end
##################################################################################
Trường hợp đã làm như trên vẫn không được, khả năng do hosting không cho bật chức năng này. Hẩy thử liên lạc với nhà cung cấp dịch vụ và yêu cầu giúp đỡ.
GL: rewrite nukeviet. rewrite .htaccess. bỏ index.php trong URL. URL rewrite.
thaotrinh
Chủ đề: t. Tricks t.Domain w.Nukeviet