参考这里的文章,我用以下几行创建了我的 .htaccess 文件
RewriteEngine on
RewriteRule ^/product/([0-9]+)/(.*)$ /index.php?route=product&product=$1 [L]
但这不起作用,我收到 404 错误。
我想要像这样的网址
http://localhost/product/12/some-random-text.html
被重定向到
http://localhost/index.php?route=product&product=12
我正在使用GoDaddy's
Linux 主机