开发者

Trying to install wordpress in a subdirectory

开发者 https://www.devze.com 2023-02-13 19:39 出处:网络
I have 开发者_运维知识库wordpress installed on domain.com Now I\'m trying to install another wordpress on domain.com/sweets/

I have 开发者_运维知识库wordpress installed on domain.com

Now I'm trying to install another wordpress on domain.com/sweets/

I uploaded everything but once I get to the "sweets/wp-admin/setup-config.php" path

it shows a page in domain.com saying "Not Found"

I assume it has something to do with the .htaccess?

.htaccess of domain.com/.htaccess

# 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]

RewriteCond %{http_host} ^domain.com [nc]
RewriteRule ^(.*)$ http://www.domain.com/$1 [r=301,nc]

</IfModule>

# END WordPress


Moved from comments thread as it appears to have solved the problem:

Does the file exist? And are the permissions on it such that the installer can open it?

Answer from Asaf: Ok that's just odd, file permissions of wp-admin/ folder were 444, set it to 755 and it works... kind of weird that it redirects to the parent folder's website though

0

精彩评论

暂无评论...
验证码 换一张
取 消