admin管理员组文章数量:1415673
For some reason, Google has picked up a PDF version of one of our articles from wp-content and ranked it for one of our higher-value keywords. I'm looking to redirect that PDF link to a link for the original article, but I can't seem to get the Redirect plugin working for the wp-content URL.
If you have any ideas for how I could redirect from the wp-content PDF url to the original article URL, I'd really appreciate it. Thanks!
For some reason, Google has picked up a PDF version of one of our articles from wp-content and ranked it for one of our higher-value keywords. I'm looking to redirect that PDF link to a link for the original article, but I can't seem to get the Redirect plugin working for the wp-content URL.
If you have any ideas for how I could redirect from the wp-content PDF url to the original article URL, I'd really appreciate it. Thanks!
Share Improve this question asked Aug 22, 2019 at 23:34 Aaron MarsdenAaron Marsden 1011 bronze badge 1 |1 Answer
Reset to default 3If you have access to your .htaccess file, try the following
RewriteEngine On
RewriteRule ^(Your_Artile_Name)\.pdf your_article.php [L,R=301]
Substituting your actual file names for 'Your_article_name' and 'your_article'.
If you have a Microsoft server, this article explains how to convert .htaccess to web.config
本文标签: redirectRedirecting from wpcontent
版权声明:本文标题:redirect - Redirecting from wp-content? 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1745223557a2648503.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
RewriteCond %{REQUEST_FILENAME} !-f
– Rup Commented Aug 23, 2019 at 7:16