简体   繁体   English

将一个特定的Wordpress URL重定向到htaccess中的移动用户的另一个站点

[英]Redirect one specific Wordpress URL to another site for mobile users in htaccess

Need some syntax help if someone would be so kind. 如果有人那么友好,需要一些语法帮助。 I have one page on my Wordpress site ( http://www.thisweekonmv.com/vineyard-map ) that I need to redirect to another website's URL for mobile users only . 我的Wordpress网站( http://www.thisweekonmv.com/vineyard-map )上有一个页面,我需要将其重定向到针对移动用户的另一个网站的URL。 I would like to do this in .htaccess, but so far all of the solutions I've researched online haven't worked. 我想在.htaccess中执行此操作,但是到目前为止,我在网上研究的所有解决方案都没有用。

This is what I have that isn't working...I probably am close but something is definitely wrong? 这就是我无法使用的...我可能已经接近了,但是肯定有问题吗?

RewriteEngine on
RewriteCond %{HTTP_USER_AGENT} "android|blackberry|ipad|iphone|ipod|iemobile|operamobile|palmos|webos|googlebot-mobile" [nc]
rewriterule ^vineyard-map(.*)$ http://myatlascms.com/map/?id=938$1 [r=301,nc]

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM