如何从url中删除"specific"关键字。。。关键字可能出现在".com"之后的第2、3或4位
例如:
我想删除关键字"移动"从下面的网址
http://www.mysites.com:8083/robert/projects/google/mobile/india/en/
http://www.mysites.com:8083/projects/google/mobile/india/en/
http://www.mysites.com/mobile/india/en/
在.htaccess文件中尝试类似的操作
RewriteEngine On
RewriteRule ^(.*)/mobile/(.*)$ $1/$2 [R=301,L]