Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with setup multisite network #339

Open
lefebvresam opened this issue Apr 26, 2024 · 2 comments
Open

Issue with setup multisite network #339

lefebvresam opened this issue Apr 26, 2024 · 2 comments

Comments

@lefebvresam
Copy link

lefebvresam commented Apr 26, 2024

I tried to setup a domain based multisite network with separating the install files in a subfolder first.
After following the steps on the website I end with:

image

If I do exactly those steps I have 403 error when going to the main site.

When I insert (by trial and error) this line in .htaccess (now in comment #) the site is working, but the admin site is not longer working (404).

RewriteCond %{REQUEST_FILENAME} -d
#RewriteRule ^(/)?$ install/index.php [L] 
RewriteRule ^ - [L]

What is going wrong here?
What should be improved in the documentation?
What is the right config in this case?

@lefebvresam
Copy link
Author

It looks like you have to overwrite '/volume1/web_packages/wordpress/install/.htaccess' instead of '/volume1/web_packages/wordpress/.htaccess', but when I create a new site with other domain and create a certificate, I get error 403. There must be still missing stuff in the head .htaccess file to make multidomain work. This is not documented.

@lefebvresam
Copy link
Author

It looks like I have to disable the lines specifying a site in the main .htaccess, this is not documented.

<IfModule mod_rewrite.c>
RewriteEngine on
#RewriteCond %{HTTP_HOST} ^(www.)?saleconix.be$
RewriteCond %{REQUEST_URI} !^/install/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /install/$1
#RewriteCond %{HTTP_HOST} ^(www.)?saleconix.be$
RewriteRule ^(/)?$ install/index.php [L] 
</IfModule>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant