从AMP URL重定向到真实URL [英] Redirect from AMP URLs to Real URLs
本文介绍了从AMP URL重定向到真实URL的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想将旧链接和amp链接转换为wordpress中的基本主题 通过.htaccess文件 我尝试了这段代码,但是没有用
I want to convert old links amp links to basic topics in wordpress Via the .htaccess file I tried this code but it did not work
#Redirect old AMP URLs
RewriteRule (.*)/AMP$ $1 [NC,R=301,L]
#Redirect old AMP URLs
RewriteRule (.*)/amp/$ $1 [NC,R=301,L]
我要重定向自
到
推荐答案
使用此
RewriteRule ^(.*)/amp$ $1 [R=301,L]
这篇关于从AMP URL重定向到真实URL的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文