admin管理员组文章数量:1426508
I love websites so much that I want to put a website into another website. I have a static site under /wp-content/uploads/site
. It has a lot of pages and I can access it without an issue in https://[my-domain]/wp-content/uploads/site
but I want it accessible as a root directory: https://[my-domain]/site
I tried adding the following rule to my .htaccess:
RewriteRule ^site/(.*)$ /wp-content/uploads/site/$1 [L]
This works because I can load the static site as https://[my-domain]/site
but when I click on links (absolute URLs such as /site/url
I get redirected to https://[my-domain]/wp-content/uploads/site/url
BTW: I added my rule right before RewriteRule ^index\.php$ - [L]
Any ideas on what's not working?
本文标签: redirectLoading wpcontentuploadssite as site
版权声明:本文标题:redirect - Loading wp-contentuploadssite as site 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1745417558a2657754.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论