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

[nginx/templates] Add WordPress Multisite subdir support #3741

Merged
merged 1 commit into from
Jul 4, 2023

Conversation

hudokkow
Copy link
Contributor

@hudokkow hudokkow commented Jul 4, 2023

This collides with #3739

I'll rebase and push after #3739 goes in.

The code in question is

	# Rewrite requests to /wp-.* on subdirectory installs.
	if (!-e $request_filename) {
		rewrite /wp-admin$ $scheme://$host$uri/ permanent;
		rewrite ^/[_0-9a-zA-Z-]+(/wp-.*) $1 last;
		rewrite ^/[_0-9a-zA-Z-]+(/.*\.php)$ $1 last;
	}

@jaapmarcus jaapmarcus changed the base branch from main to templates/update-wp July 4, 2023 11:24
@jaapmarcus jaapmarcus merged commit c523a1e into hestiacp:templates/update-wp Jul 4, 2023
6 checks passed
@hudokkow hudokkow deleted the wp_subdir branch July 4, 2023 12:03
jaapmarcus added a commit that referenced this pull request Jul 4, 2023
…Press Multisite subdir support (#3741)

* Fix: #3729 Missing robots.txt get redirected to WP
* [nginx/templates] Add WordPress Multisite subdir support (#3741)
Co-authored-by: h.udo <hudokkow@gmail.com>
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

Successfully merging this pull request may close these issues.

None yet

2 participants