• Hi there,

    So i made to two sites in a multisite install. So i end up with three sites, /, /en, and /ru. I would like the /en to be the main site. What’s the best way of going about that? Do I need to set up domain forwarding? or can I just set that in the wp-config file or through htaccess?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    Do you want it to keep the /en URL?

    Thread Starter peterbinks

    (@peterbinks)

    Well yeah. In the end all I’m using is the /en and /ru URL’s, so i wanted the the root domain to point automatically at /en.

    Thread Starter peterbinks

    (@peterbinks)

    Basically I want to do what this post is talking about

    https://wordpress.org/support/topic/301-redirect-to-root-domain-to-subfolder-multisite?replies=3

    i want christfan.com to autmatically redirect to christfan.com/en when people type in the URL.

    however i’m not entirely sure how to keep redirect the main url to the subfolder while keeping only some of the wp- folders intact.

    also this is my .htaccess right now. the last bit for the redirect is from trying to go through my cpanel, and i found the wp- folder stuff online. but it still doesn’t seem to be working

    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    
    # add a trailing slash to /wp-admin
    RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L]
    
    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^ - [L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*) $2 [L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L]
    RewriteRule . index.php [L]
    
    # Whitelist directories and files needed by WordPress
    RewriteCond %{REQUEST_FILENAME} !/wp-.* [NC]
    RewriteCond %{REQUEST_URI} !/wp-.* [NC]
    RewriteCond %{THE_REQUEST} !/wp-.* [NC]
    
    RewriteCond %{HTTP_HOST} ^christfan\.com$ [OR]
    RewriteCond %{HTTP_HOST} ^www\.christfan\.com$
    RewriteRule ^/?$ "http\:\/\/christfan\.com\/en" [R=301,L]
    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    Okay. Easiest way?

    Keep christfan.com as a site in your network. Give it a static home page that redirects. Done.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Making a Subsite the Default’ is closed to new replies.