-
Notifications
You must be signed in to change notification settings - Fork 145
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
Redirects through .htaccess on multisite #1340
Comments
Just ran into this issue as well and would love to see this feature. |
No chance unless plug-in will be designed for it specifically. Personally
preferred to migrate to single site especially that I used multi site to
manage all updates from one place and there is a plugin to do this now so
no really sense for me.
On Thu, 4 Apr 2019 at 18:20, Tim Loden ***@***.***> wrote:
Just ran into this issue as well and would love to see this feature.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#1340 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAQjCpZiYQBc_k8evA3gqWb2LeeosK9cks5vdjRigaJpZM4ZKSad>
.
--
Dariusz Grzegorz Więckiewicz | *[email protected]
<[email protected]>*
MSc Eng | QM Fasteners Industry | QM Food Industry
Food Engineer | Food Technician | IT Specialist
|
We also ran into this issue. We'd love to use |
I am currently facing this issue. I can work with .htaccess directly but it would far easier to expand the capability of the plugin to accept a regex or full url. Even being able to select from a dropdown of sites as the base or the redirect URL would be useful. |
Summary
By default, when using the plugin with Apache Groups in Wordpress Multisite to write redirects to .htaccess it create redirects that are applicable to all websites (URLs) rather than only to the main URL where the plugin is activated an in use.
<IfModule mod_rewrite.c> RewriteCond %{HTTPS} off RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} RewriteRule ...
Actual Behavior
Will be nice if plugin detects a multisite environment and add to the rule RewriteCond to apply to specific WordPress domain rather than to all of them. Think it is HTTP_HOST.
Idea example:
RewriteCond %{HTTP_HOST} ^(www\.)?domain\.fr$ [NC] RewriteRule ^(|fr)$ http://www.domain.com/fr/france [R=301,L]
And then under there will be RewriteRules as in plugin.
In that situation, Single .htaccess will be able to accommodate multiple instances of Apache redirect for different domains in a multisite environment.
Environment
Wordpress Multisite
References
https://wordpress.org/support/topic/redirects-through-htaccess-on-multisite/
The text was updated successfully, but these errors were encountered: