Jump to content

Friendly URL không chạy duoc


Recommended Posts

Mình vào Reference bật chức năng Friendly URL rồi.
Sau đó đổi tiên htaccess.txt thành .htaccess rồi. Nội dung của file này nhu sau:

# URL rewriting module activation

RewriteEngine on
URL rewriting rules
RewriteRule ^([0-9]+)\-([a-zA-Z0-9-]*)\.html(.*)$ product.php?id_product=$1$3 [L,E]
RewriteRule ^([0-9]+)\-([a-zA-Z0-9-]*)(.*)$ category.php?id_category=$1$3 [L,E]
RewriteRule ^([0-9]+)__([a-zA-Z0-9-]*)(.*)$ supplier.php?id_supplier=$1$3 [L,E]
RewriteRule ^([0-9]+)_([a-zA-Z0-9-]*)(.*)$ manufacturer.php?id_manufacturer=$1$3 [L,E]


Catch 404 errors
ErrorDocument 404 /404.php


Nhưng vẫn khong hoạt động duoc, khong hieu sao nữa. Có pro nào giúp mình với.

Link to comment
Share on other sites

  • 1 month later...
  • 3 weeks later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...