i want create sub domain

i have created

http://www.wp2.win/test1

http://www.wp2.win/test2

but now i want create

test1.www.wp2.winv

test2.www.wp2.win

  • Aditya
    • Staff

    Hi leonard

    I hope you are doing good and thanks for asking the question :slight_smile:

    There are some steps that you need to follow:

    1. You must take a backup of full multisite, all files and including the database.

    2. Open wp-config.php file and change

    define('SUBDOMAIN_INSTALL', false);

    to

    define('SUBDOMAIN_INSTALL', true);

    3. Change your htaccess to

    RewriteEngine On
    RewriteBase /
    RewriteRule ^index.php$ - [L]

    # add a trailing slash to /wp-admin
    RewriteRule ^wp-admin$ wp-admin/ [R=301,L]

    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^ - [L]
    RewriteRule ^(wp-(content|admin|includes).*) $1 [L]
    RewriteRule ^(.*.php)$ wp/$1 [L]
    RewriteRule . index.php [L]

    Also, for more information you can refer to https://premium.wpmudev.org/blog/change-multisite-sub-directories-sub-domains/

    Hope it helps :slight_smile: Please feel free to ask more question if you have any.

    Cheers,

    Aditya Shah

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.