Closed. This question is off-topic. It is not currently accepting answers.admin管理员组文章数量:1429524
Your question should be specific to WordPress. Generic PHP/JS/SQL/HTML/CSS questions might be better asked at Stack Overflow or another appropriate Stack Exchange network site. Third-party plugins and themes are off-topic for this site; they are better asked about at their developers' support routes.
Closed 5 years ago.
Improve this questionI have a website, let's call it billyweb, built with Wordpress. On the other side, the billyweb has a subpage called billyweb/blog. I want to move all the contents inside billyweb/blog to billyweb. My question is how do I redirect all the content links inside billyweb/blog?
For example: billyweb/blog/what-is-blogging.html redirected to billyweb/what-is-blogging.html.
One question again, how to ensure that the redirection works if the old link is clicked through a search engine?
Thanks.
Closed. This question is off-topic. It is not currently accepting answers.Your question should be specific to WordPress. Generic PHP/JS/SQL/HTML/CSS questions might be better asked at Stack Overflow or another appropriate Stack Exchange network site. Third-party plugins and themes are off-topic for this site; they are better asked about at their developers' support routes.
Closed 5 years ago.
Improve this questionI have a website, let's call it billyweb, built with Wordpress. On the other side, the billyweb has a subpage called billyweb/blog. I want to move all the contents inside billyweb/blog to billyweb. My question is how do I redirect all the content links inside billyweb/blog?
For example: billyweb/blog/what-is-blogging.html redirected to billyweb/what-is-blogging.html.
One question again, how to ensure that the redirection works if the old link is clicked through a search engine?
Thanks.
Share Improve this question edited Jun 10, 2019 at 19:35 fuxia♦ 107k39 gold badges255 silver badges459 bronze badges asked Jun 10, 2019 at 9:45 user169726user169726 11 1- css-tricks/snippets/htaccess/301-redirects – Max Yudin Commented Jun 10, 2019 at 9:53
1 Answer
Reset to default 1you have multiple options to achive this.
The easiest way is to use a redirection plugin like:
https://wordpress/plugins/redirection/
if you want to work without a additional plugin, you can use .htaccess redirection like mentioned earlier:
RewriteEngine On
RewriteRule ^/?blog/(.*)$ /$1 [R=301,L]
本文标签: Redirect wordpress website39s subpage to root
版权声明:本文标题:Redirect wordpress website's subpage to root 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1745418396a2657792.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论