redirect - Loading wp-contentuploadssite as site

I love websites so much that I want to put a website into another website. I have a static site under wp-contentupload

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?

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745417560a4626818.html

相关推荐

  • redirect - Loading wp-contentuploadssite as site

    I love websites so much that I want to put a website into another website. I have a static site under wp-contentupload

    10小时前
    40

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信