Support » Networking WordPress » Sub-domain to Sub-directory setup

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


    Lead Plugin Wrangler

    How many sub-blogs do you have? If you don’t have any, it’s really easy. If you have some, then it’s still somewhat easy.

    That’s great! How do I do it? Where should i make changes?

    Moderator Ipstenu (Mika Epstein)


    Lead Plugin Wrangler

    You edit your wp-config.php, your .htaccess, and then if you have any sites, you will have to edit your DB so they now point to subdomains.

    I found it easier to make a new subdomain, and then use that as a sort of template for the old ones.

    Nice! Thanks.. I missed that one ;p

    I have one more question and this will be the last one! The guide says I have to make configurations in my .htaccess as well.. whats to change there? It doesn’t say what to change in the guide and I’m not sure what to do about it!


    You should put this in as your .htaccess file.

    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    # uploaded files
    RewriteRule ^([_0-9a-zA-Z-]+/)?files/(.+) wp-includes/ms-files.php?file=$2 [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).*) $1 [L]
    RewriteRule  ^[_0-9a-zA-Z-]+/(.*\.php)$ $1 [L]
    RewriteRule . index.php [L]

    Remember to remove the old wordpress settings from the file.

    For reference

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Sub-domain to Sub-directory setup’ is closed to new replies.