Title: Multisite
Last modified: June 7, 2023

---

# Multisite

 *  [almsit](https://wordpress.org/support/users/almsit/)
 * (@almsit)
 * [2 years, 10 months ago](https://wordpress.org/support/topic/multisite-694/)
 * Hello. I have multiple subdomains on the same server. Each subdomain is an independent
   vp site. There is also a main site on vp. There is a link test.ru. Subdomain 
   link sub.test.ru How can I force test.ru/sub/ to open the subdomain as a subcategory?
   in the end, you need to get test.ru/sub/product, test.ru/sub2/product test.ru/
   sub3/product

Viewing 4 replies - 1 through 4 (of 4 total)

 *  [Ashish Rathod](https://wordpress.org/support/users/ashish121/)
 * (@ashish121)
 * [2 years, 10 months ago](https://wordpress.org/support/topic/multisite-694/#post-16801619)
 * Hi, [@almsit](https://wordpress.org/support/users/almsit/) you need to change
   your RewriteRule to your htacess file.
   RewriteCond %{HTTP_HOST} ^sub\.test\.ru
   $ [NC] RewriteRule ^(.*)$ [http://test.ru/sub/$1](http://test.ru/sub/$1) [L,R
   =301]RewriteCond %{HTTP_HOST} ^sub2\.test\.ru$ [NC] RewriteRule ^(.*)$ [http://test.ru/sub2/$1](http://test.ru/sub2/$1)[
   L,R=301]
 *  Thread Starter [almsit](https://wordpress.org/support/users/almsit/)
 * (@almsit)
 * [2 years, 10 months ago](https://wordpress.org/support/topic/multisite-694/#post-16801680)
 * Thank you. I go to [https://rostov-na-donu.xn--80afmjpiv.xn--p1ai/](https://rostov-na-donu.xn--80afmjpiv.xn--p1ai/)
   and nothing happens. I need to open [https://xn--80afmjpiv.xn--p1ai/rostov-na-donu](https://xn--80afmjpiv.xn--p1ai/rostov-na-donu).
   Set a rule RewriteCond %{HTTP_HOST} ^rostov-na-donu\.xn--80afmjpiv\.xn--p1ai$[
   NC] RewriteRule ^(.*)$ [https://xn--80afmjpiv.xn--p1ai/rostov-na-donu/$1](https://xn--80afmjpiv.xn--p1ai/rostov-na-donu/$1)[
   L,R=301] How to be?
    -  This reply was modified 2 years, 10 months ago by [almsit](https://wordpress.org/support/users/almsit/).
    -  This reply was modified 2 years, 10 months ago by [almsit](https://wordpress.org/support/users/almsit/).
 *  [Ashish Rathod](https://wordpress.org/support/users/ashish121/)
 * (@ashish121)
 * [2 years, 10 months ago](https://wordpress.org/support/topic/multisite-694/#post-16801767)
 * Hi [@almsit](https://wordpress.org/support/users/almsit/) Please restart the 
   Apache server after the apply changes. Thanks!
 *  Thread Starter [almsit](https://wordpress.org/support/users/almsit/)
 * (@almsit)
 * [2 years, 10 months ago](https://wordpress.org/support/topic/multisite-694/#post-16802463)
 * the redirect worked, it’s not exactly what you need. Redirects as needed, but
   opens [https://xn--80afmjpiv.xn--p1ai/?region=rostov-na-donu](https://xn--80afmjpiv.xn--p1ai/?region=rostov-na-donu),
   I need it to go to [https://xn--80afmjpiv.xn--p1ai/rostov-na-donu](https://xn--80afmjpiv.xn--p1ai/rostov-na-donu)
   and the subdomain page opens. How to do it?
    -  This reply was modified 2 years, 10 months ago by [almsit](https://wordpress.org/support/users/almsit/).
    -  This reply was modified 2 years, 10 months ago by [almsit](https://wordpress.org/support/users/almsit/).

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Multisite’ is closed to new replies.

 * In: [Networking WordPress](https://wordpress.org/support/forum/multisite/)
 * 4 replies
 * 2 participants
 * Last reply from: [almsit](https://wordpress.org/support/users/almsit/)
 * Last activity: [2 years, 10 months ago](https://wordpress.org/support/topic/multisite-694/#post-16802463)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
