首页 > 建站相关 > Web—将WordPress文件夹安装于独立子目录(但通过根目录访问)
2014四月22

Web—将WordPress文件夹安装于独立子目录(但通过根目录访问)

当我使用wordpress建博客时,我不希望我 的hgy413.com根目录全是wordpress的相关文件与文件夹,我希望它整个就在hgy413.com/wordPress这一个子目录下,但是!我希望能通过www.hgy413.com直接访问wordpress 而不是通过www.hgy413.com/wordpress来访问wordpress

解决方式

参考了wordpress的官方文档

1.进入wordPress中,在设置–常规中把:

站点地址(URL)改成www.hgy413.com(原来是www.hgy413.com/WordPress),如下图

wordpress-change-url.png

2.用FTP把/hgy413.com/WordPress文件夹下的index.php复制到/hgy413.com文件夹下,原来有的就直接替换,以下方式对于启用了多站点的用户无效把require('./wp-blog-header.php');换成 require('./wordpress/wp-blog-header.php');

如下图:

wordpress-change-url2.png

文章作者:hgy413
本文地址:https://hgy413.com/81.html
版权所有 © 转载时必须以链接形式注明作者和原始出处!

19 Responses to “Web—将WordPress文件夹安装于独立子目录(但通过根目录访问)”

  1. #1 minecraft 回复 | 引用 Post:2018-10-04 07:23

    Outstanding post however , I was wanting to know if you could write
    a litte more on this subject? I’d be very thankful if you could
    elaborate a little bit more. Thank you!

  2. Do you have a spam issue on this website; I also
    am a blogger, and I was wanting to know your situation; many of us have
    created some nice practices and we are looking
    to exchange strategies with others, please shoot me an email if interested.

  3. #3 tinder dating site 回复 | 引用 Post:2018-10-16 03:33

    Greetings from California! I’m bored at work so I decided to check
    out your site on my iphone during lunch break. I really like the
    information you present here and can’t wait to take a
    look when I get home. I’m amazed at how quick your blog
    loaded on my cell phone .. I’m not even using WIFI, just
    3G .. Anyhow, amazing blog!

  4. I think this is among the most significant information for me.

    And i’m glad reading your article. But should remark on few general things, The site style is perfect,
    the articles is really great : D. Good job, cheers

  5. #5 Benefits of Coconut Oil 回复 | 引用 Post:2018-10-27 02:25

    Touche. Solid arguments. Keep up the good
    work.

  6. Hi I am so excited I found your blog page, I really found you
    by mistake, while I was browsing on Digg for something else, Anyways I am here
    now and would just like to say many thanks for a incredible post and a
    all round exciting blog (I also love the theme/design), I don’t have
    time to look over it all at the minute but I have saved it and also added in your RSS feeds,
    so when I have time I will be back to read a great deal more,
    Please do keep up the awesome b.

  7. Hey! I know this is kinda off topic but I was wondering if you knew where I could find a captcha
    plugin for my comment form? I’m using the same blog platform as
    yours and I’m having problems finding one? Thanks a
    lot!

  8. I’m extremely pleased to discover this page. I wanted to thank you for ones time for this particularly
    fantastic read!! I definitely enjoyed every little bit of it and i also have
    you book-marked to see new things in your site.

  9. Everything is very open with a very clear explanation of the challenges.

    It was truly informative. Your site is very
    helpful. Many thanks for sharing!

  10. Spot on with this write-up, I actually think this web
    site needs far more attention. I’ll probably be returning to see more, thanks for
    the advice!

  11. #11 Sling TV 回复 | 引用 Post:2018-11-15 06:57

    It is appropriate time to make some plans for the future and it’s time to be happy.
    I’ve learn this submit and if I may just I wish to recommend you some interesting
    issues or advice. Perhaps you can write next articles relating
    to this article. I wish to read more issues approximately it!

  12. Hi there! Someone in my Myspace group shared this site with us so
    I came to give it a look. I’m definitely loving the
    information. I’m bookmarking and will be tweeting this to my followers!

    Fantastic blog and fantastic design.

  13. I loved as much as you will receive carried out
    right here. The sketch is tasteful, your authored material stylish.

    nonetheless, you command get got an shakiness over that
    you wish be delivering the following. unwell unquestionably come more formerly again as exactly
    the same nearly a lot often inside case you shield this increase.

  14. #14 netflix free generator 回复 | 引用 Post:2020-06-07 02:00

    My brother recommended I might like this blog. He was
    totally right. This post truly made my day.
    You cann’t imagine just how much time I had spent for this info!
    Thanks!

  15. #15 mafia city hack 回复 | 引用 Post:2020-06-08 16:23

    When I initially commented I appear to have clicked on the -Notify me when new
    comments are added- checkbox and now each time a comment is
    added I get four emails with the exact same comment.
    There has to be a way you are able to remove me from that service?
    Thank you!

  16. #16 hack star trek command 回复 | 引用 Post:2020-06-08 17:16

    Nice post. I was checking continuously this
    blog and I am impressed! Very useful information particularly the last part :
    ) I care for such info much. I was looking for this certain info for a very
    long time. Thank you and best of luck.

  17. #17 hack king of avalon 回复 | 引用 Post:2020-06-08 17:50

    Having read this I thought it was rather informative.
    I appreciate you finding the time and energy to put this short article together.

    I once again find myself spending way too much time both reading and posting comments.
    But so what, it was still worth it!

  18. Wonderful post! We will be linking to this great content on our site.
    Keep up the great writing.

  19. #19 g 回复 | 引用 Post:2020-06-15 07:01

    Very nice article, exactly what I was looking for.

发表评论