最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

php - 200 Rewrite blog post links

programmeradmin5浏览0评论

I have an self-hosted website and Wordpress where mywebpage is my main site and mywebpage/blog is my Wordpress Blog.

I'm building an new website on AWS Amplify with more modern web languages, and because of that its not as easy to install wordpress in a project folder, and I don't want to lose my blog, so here what I've done so far:

I wrote an 200 Rewrite rule on my new website (Let's call it newpage) so when I visit newpage/blog what I actually see is my Wordpress Blog page, I can even visit newpage/blog/interesting-post/and it would show me the correct post on my blog, all of this without an domain change on the browser.

Here's my problem: The first page on my blog has links to popular posts, categories and etc. If i visit my blog trough my new domain and click on one of the posts there I'm redirected to mywebpage/popular-post, because the links are not following the 200 Rewrite Rule.

Is there a way to change posts URL to follow the 200 Rewrite rule ?

与本文相关的文章

发布评论

评论列表(0)

  1. 暂无评论