我正在尝试重定向url,如下例所示。 我想将以下请求应用于Wordpress。 也许它可能与jQuery(我不确定)
我当前的网址是http://www.example.com/category/catalog/tablets-01
我想要包含“ / category / catalog / ”的所有网址 要更改为此http://www.example.com/catalog/?_category=tablets-01
即使网址是这样的:www。例如.com / category / catalog / tablets-01 / apple-new / 应改为:www。例如.com / catalog /?_ category = apple-new
谢谢!
答案 0 :(得分:0)
1. Loop through country code list.
2. Use stringbuffer to form the country code as comma separated values.
3. Pass the string to SQL query.
4. Iterate through the resultset.
5. Pass the country code in CbExchangePower and get the value.
6. If the value is null then
create a new list and add PowerExchange object
else
create a new PowerExchange object and add it to the existing list
您可以使用此pHp代码重定向到所需的页面