Open mbrodala opened 7 years ago
For me a domain redirect redirects from domain a to b and not into a subpath of domain a. Can you show me the aquivalent for that feature in your .htaccess? For now I would prefer a regex redirect to solve that issue.
Here's how one would do this in .htaccess
:
RewriteCond %{HTTP_HOST} ^example\.com$ [NC]
RewriteRule ^ https://example.org/com%{REQUEST_URI} [R=301,L]
Given the following setup:
example.org
example.com
toexample.org/com
Requesting the site via
example.com
correctly redirects toexample.org/com
.However, now all URLs redirect to
example.org/com
, even ones onexample.org
.