How to deploy a wordpress website on the same repository as my website .

Oussama Boujnan
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
November 11, 2024

Hello everyone, I hope you’re doing well.

I’m reaching out to ask for some assistance with deploying my WordPress website using Bitbucket. I’ve been trying to deploy it within an existing project there that’s already live. I created a "wp" folder in the project and pushed my entire WordPress site there.

However, when I try to access the site via "website/wp", the WordPress site doesn’t appear, and I’m met with the error message below.

Could anyone advise if I might be missing some configuration steps? Or should the WordPress site ideally be deployed in a separate repository? Any guidance would be greatly appreciated! Thank you in advance.

Screenshot 2024-11-11 184856.png

1 answer

0 votes
jamesalery1
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
November 13, 2024

It seems like you're encountering an issue with deploying your WordPress site like superpowergenerator.com in a subfolder within an existing project. First, ensure that your WordPress installation's wp-config.php file is properly configured for the subfolder setup. You might need to update the WP_SITEURL and WP_HOME values to reflect the correct URL path, like so:

php
Copy code
define('WP_SITEURL', 'http://yourdomain.com/wp');
define('WP_HOME', 'http://yourdomain.com/wp');
Additionally, if you're using Apache, verify that your .htaccess file in the /wp directory is correctly set up to handle the subfolder. It should look something like this:

txt
Copy code
RewriteEngine On
RewriteBase /wp/
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /wp/index.php [L]

Oussama Boujnan
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
November 15, 2024

Thank you for your response , and I apologize for the delay . I did not get any notification about your comment . Anyways I will try it , thanks again !

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PERMISSIONS LEVEL
Product Admin Site Admin
TAGS
AUG Leaders

Atlassian Community Events