简体   繁体   English

在根目录中安装Wordpress

[英]install Wordpress in the root directory

I'm trying to install wordpress on my debian server (Jessy), 我正在尝试在我的Debian服务器(Jessy)上安装wordpress,
I followed this tutorial: https://wiki.debian.org/WordPress 我遵循了本教程: https : //wiki.debian.org/WordPress

I want to install it on the root directory (domain.com) but it don't work wordpress is only available on domain.com/wp 我想将其安装在根目录(domain.com)上,但无法正常工作wordpress仅在domain.com/wp上可用

I think I should modify this part but I didn't find the way to do as I wish 我想我应该修改这部分,但是我没有找到想要的方法

  Alias /wp/wp-content /var/lib/wordpress/wp-content
    Alias /wp /usr/share/wordpress
    <Directory /usr/share/wordpress>
        Options FollowSymLinks
        AllowOverride Limit Options FileInfo
        DirectoryIndex index.php
        Require all granted
    </Directory>
    <Directory /var/lib/wordpress/wp-content>
        Options FollowSymLinks
        Require all granted
    </Directory>

Could you help me on this please? 你能帮我这个忙吗?

Thanks! 谢谢!

找到答案后,我添加了followind htaccess规则,它现在可以正常工作:

RewriteRule ^(/)?$ wp[L]

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM