我有这个动态生成的网址:/folder/folder/folder/folder/index.php?product=bike
我需要将其转换为静态网址:/folder/folder/folder/folder/product/bike
.htaccess 在根文件夹中
代码
RewriteCond %{QUERY_STRING} ^product=1$
RewriteRule ^([^/]+)/? index.php?product=$1 [L]
我有这个动态生成的网址:/folder/folder/folder/folder/index.php?product=bike
我需要将其转换为静态网址:/folder/folder/folder/folder/product/bike
.htaccess 在根文件夹中
代码
RewriteCond %{QUERY_STRING} ^product=1$
RewriteRule ^([^/]+)/? index.php?product=$1 [L]