0

I have a problem with creating a redirect in the WP MultiSite. My WP has only three pages:

domain.com
domain.com/aaa
domain.com/bbb

I want redirect from domain.com/zzz to domain.com/bbb I don’t want map the domain just redirect (with and without WWW).

My WP is installed in a subdirectory. In the root directory of my hosting I have htaccess (with redirect to the subdirectory).

0

An htaccess rewrite rule ought to do it. Check out this post https://mediatemple.net/community/products/dv/204643270/using-htaccess-rewrite-rules for examples of what you might do.

The one you use will depend on whether content in zzz is the same as the bbb site. If you just want to redirect everything (any page) on bbb to zzz, then this should work:

Options +FollowSymLinks
RewriteEngine On
RewriteRule ^bbb.*$ http://example.com/zzz/ [R=301,L]

That will redirect anything on bbb to zzz (ie: http://example.com/bbb/somepage to http://example.com/zzz (home page, whichever it is).

Remember to adjust for https if necessary. Other options are in the above link.

|improve this answer|||||

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.