请问代表任意的目录怎么写?我的products下边有一个showdetail.php,显示产品时的地址是
http://www.***.com/products/showdetail.php?id=***;
想改为每一个产品都要有一个自已的目录,类似于
http://www.***.com/products/newproducts/index.html
http://www.***.com/products/newproducts1/index.html
http://www.***.com/products/newproducts2/index.html
http://www.***.com/products/newproducts3/index.html
http://www.***.com/products/showdetail.php?id=***;
想改为每一个产品都要有一个自已的目录,类似于
http://www.***.com/products/newproducts/index.html
http://www.***.com/products/newproducts1/index.html
http://www.***.com/products/newproducts2/index.html
http://www.***.com/products/newproducts3/index.html
RewriteEngine On
RewriteRule ^/products/newproducts(\d*)/index.html$ /products/showdetail.php?id=$1 [L]
</IfModule>
RewriteEngine On
RewriteRule ^/products/newproducts(\d*)/index.html$ /products/showdetail.php?id=$1 [L]
</IfModule>newproducts是根据不同产品显示不同的文件夹,类似于。http://www.***.com/products/outdoor/index.html
http://www.***.com/products/indoor/index.html
http://www.***.com/products/customized/index.html
http://www.***.com/products/gridled/index.html
郑州PHP.Net
http://www.zzphp.net/