且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

PHP / htaccess的301重定向重写动态网页和放大器;友好的URL?

更新时间:2023-09-12 08:03:22

您需要在您的网址类别,子类别和MODEL_NAME - model_id你这样开始的任何重定向之前。目前,我看不出这样的事情(Product1.php?=的product_id = 1),如果你有他们,你可以使用

You need to have "category", "subcategory" and "model_name-model_id" in your URL before you start any redirection like this. At the moment I cannot see anything like that (Product1.php?=Product_ID=1) If you have them you can use

的RewriteCond .. .. 重写规则

RewriteCond .. .. RewriteRule

一种方法这一点。