0
删除重复的字符串我有一个URL是这样的:htaccess的规则来从URL
domain/mobile/mobile/ascent-c-662.html
我需要重定向到:
domain/mobile/ascent-c-662.html
我试过下面的规则,但事实并非如此工作:
RewriteRule mobile\w*(.*?)(mobile(\w*))?(\..*) mobile$1umair$3$4 [QSA,NC]
没有它不工作,我测试它在本地主机上可以说,它是问题吗?它将我重定向到:http://localhost/mobile/mobile/test.html,它删除了根文件夹 –
我刚刚在几秒前更新过它(可能在您尝试时),请重试。 – msalperen
结果仍然相同 –