简体   繁体   English

htaccess问题,在根目录和子目录中安装了多个wordpress

[英]htaccess issue with multiple wordpress installed in root and subdirectory

I have installed 2 wordpress site in one host. 我在一台主机上安装了2个wordpress网站。 Originally I have installed it in root folder, for some reason I need to install another wordpress site separately in a subfolder which later on I will going to link it in a subdomain. 最初,我已将其安装在根文件夹中,由于某种原因,我需要在子文件夹中单独安装另一个wordpress网站,稍后再将其链接到子域中。 While I have sucessfully Installed the new wordpress, however I have an issue with my htacccess. 虽然我已经成功安装了新的wordpress,但是我的htacccess存在问题。

Here is my htaccess in my root 这是我的htaccess根源

# Use PHP5.4 as default
AddHandler application/x-httpd-php54 .php

# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

# END WordPress

and here is my htaccess in the subfolder 这是我在子文件夹中的htaccess

# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /help
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /help/index.php [L]
</IfModule>
# END WordPress

Change 更改

# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /help
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /help/index.php [L]
</IfModule>
# END WordPress

To

# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /help
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress

暂无
暂无

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

相关问题 magento与WordPress的子目录中的htaccess问题 - magento with wordpress in subdirectory htaccess issue 在子目录中安装pyrocms,在根目录中安装wordpress - pyrocms installation in a subdirectory with wordpress installed in the root directory Wordpress已经安装在根目录中,我也已经在子目录中安装了Wordpress,但是问题是子目录URL无法正常工作 - Wordpress already Installed in root Directory and I have also installed wordpress in subdirectory, But the problem is subdirectory URL is not working Jelastic Wordpress网站安装在子目录和设置中,不适用于根域 - Jelastic Wordpress site installed in subdirectory and set does not work for the root domain 在子目录上安装了wordpress,想要将帖子导入到根目录(主页) - Have wordpress installed on a subdirectory, want to import posts to root (homepage) Wordpress Htaccess - 停止子目录自动重定向到根索引 - Wordpress Htaccess - stop subdirectory auto redirecting to root index .htaccess配置,将wordpress网站的主页设置到子目录,将其他页面设置到根目录 - .htaccess configuration for homepage of wordpress site to a subdirectory and other pages to root directory 子目录中Wordpress的.htaccess规则 - .htaccess rules for Wordpress in subdirectory 如何使.htaccess在根目录中安装了wordpress的子文件夹中工作 - How to make .htaccess work in subfolders with wordpress installed at root 使用htaccess在WordPress中隐藏子目录 - Hide subdirectory in WordPress using htaccess
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM