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

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    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.

    Thread Starter seifen

    (@seifen)

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

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    http://codex.wordpress.org/Multisite_Network_Administration#Switching_network_types

    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.

    Thread Starter seifen

    (@seifen)

    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!

    Seif

    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 http://codex.wordpress.org/Multisite_Network_Administration#.htaccess_and_Mod_Rewrite

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