• Resolved EmuZone

    (@emuzone)


    Use a different site URL for each theme that Jonradio Multiple Themes switches to without breaking admin bar?

    Example: uk.blogpulse.co
    Example: us.blogpulse.co

    Functions used to create the effect in functions.php,

    define(‘WP_HOME’, ‘http://m.blogpulse.co’);
    define(‘WP_SITEURL’, ‘http://m.blogpulse.co’);

    .htaccess,

    # BEGIN WordPress

    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{HTTP_HOST} !^blogpulse\.co$ [NC]
    RewriteRule ^(.*) http://blogpulse.co/$1?%{HTTP_HOST} [R=301,L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>

    # END WordPress

    # BEGIN WordPress

    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>

    # END WordPress

    I am trying to recreate this effect with codecentral.org but am unable to do so without breaking the admin bar when Jonradio Multiple Themes switches to another theme.

    Does anyone know how this could be done?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter EmuZone

    (@emuzone)

    Please could you provide me an email and user name so you can login to blogpulse.co to view the effect working as registrations are closed.

    Hopefully someone can answer this. I do not have any expertise in the area of .htaccess files.

    Thread Starter EmuZone

    (@emuzone)

    Fix: if you only use define('WP_HOME', 'http://m.codecentral.org'); it won’t affect the admin bar. The site home URL won’t change only blog links, menu items and so on.

    Thank you so much! I am sure that this will help someone else, too, who runs into the same issue.

    Thread Starter EmuZone

    (@emuzone)

    Thank you, this plugin is the best theme switcher for WordPress and has helped my websites allot. I look forward to any future features and updates.

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

The topic ‘Different site URL for each theme?’ is closed to new replies.