我想重写我的网址。我的电流就像
dura.webeteerprojects.com/products/C-Smart-Smart-Bulbs/我想把这个网址改为
dura.webeteerprojects.com/C-SMART/C-Smart-Smart-Bulbs/其中C-智能是类别名称,C-智能-智能灯泡是我的产品名称。
我试过的是
RewriteEngine On
RewriteRule ^C-SMARTproducts/C-Smart-Smart-Bulbs/?$ products/C-Smart-Smart-Bulbs [NC,L]然后我尝试运行dura.webeteerprojects.com/C-SMART/C-Smart-Smart-Bulbs/,页面将显示来自dura.webeteerprojects.com/products/C-Smart-Smart-Bulbs/的内容
但是浏览器上显示的网址是dura.webeteerprojects.com/products/C-Smart-Smart-Bulbs/,但我必须像dura.webeteerprojects.com/C-SMART/C-Smart-Smart-Bulbs/那样显示
请帮我解决这个问题。谢谢
发布于 2016-05-03 04:55:54
尝尝这个,
RewriteEngine On
RewriteRule ^(C-SMARTproducts/C-Smart-Smart-Bulbs/)?$ products/C-Smart-Smart-Bulbs/ [NC,L]https://stackoverflow.com/questions/36976499
复制相似问题