• Resolved ghenghiz

    (@ghenghiz)


    Hi to all,

    I would appreciate if you could help me.
    I tried to search related post but I can’t find a reasonable solution.

    I have my shared server on 1and1 (http://www.asturies-msc.com) with a fresh install of WordPress 3.4.2.
    I activate WP MU following codex instructions, and I choose the subdomains option (Despite the wildcards DNS warning)
    I have created in 1and1’s cPanel a new subdomain: http://caph.asturies-msc.com (pointing main directory folder) and created the new site in WP dashboard.

    If you go to the new site (http://caph.asturies-msc.com) , you could see that It apparently works… but if you click on any link, it will show a 404-error.
    The most strange thing is that the Caph’s Dashboard with http://caph.asturies-msc.com/wp-admin/ URL Works!

    This is my .htaccess:

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    
    # uploaded files
    RewriteRule ^files/(.+) wp-includes/ms-files.php?file=$1 [L]
    
    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^ - [L]
    RewriteRule . index.php [L]
    </IfModule>
    
    # END WordPress

    And my wp-config Multisite lines:

    define( 'MULTISITE', true );
    define( 'SUBDOMAIN_INSTALL', true );
    $base = '/';
    define( 'DOMAIN_CURRENT_SITE', 'www.asturies-msc.com' );
    define( 'PATH_CURRENT_SITE', '/' );
    define( 'SITE_ID_CURRENT_SITE', 1 );
    define( 'BLOG_ID_CURRENT_SITE', 1 );

    ¿Any help?

    Thank in advance

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

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    Uh a bigger problem is that http://www.asturies-msc.com/ redirects to http://www.asturies-msc.com/index.php_

    Grab your webhost and ask for help.

    Thread Starter ghenghiz

    (@ghenghiz)

    Yeah.. yesterday, tired of searching any solution and trying things, I decided to restore my site from a backup and make WP MU with sub-directories.

    Now my problem is different. I have the 2nd site: http://www.asturies-msc.com/caph/ and I have a subdomain (via cPanel) http://caph.asturies-msc.com which changes automatic to http://www.asturies-msc.com/caph/

    I wish to have all new sites URls using the subdomain, but I can’t, independently which type of subdomain I use.
    1and1’s cPanel let you choose between:
    – http redirection: the one I am using, changing automatic from caph.asturies-msc.com to http://www.asturies-msc.com/caph/
    – Frame redirection: A classic frame, with the URL not changing despite the page I am
    – Directory redirection: Not working because /caph/ It is not a real directory (500 error)

    I guess it would be solved with the 3rd option (directory redirection) writing some lines in the .htaccess file, but I don’t know how to make it, and probably this forum is not the place to solve this kind of problem.

    BTW, if anyone could help me, I would be pleased to try any option you could tell me.

    Thank you in advanced

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘WP Multisite, 1and1 and subdomains’ is closed to new replies.