WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] subdomain links redirect to main site front page (9 posts)

  1. spes123
    Member
    Posted 2 years ago #

    I have recently encountered some issues with my multisite setup the main one being the fact that any link on my subdomain sites is being redirected to the front page of my main site. As far as I can see the htaccess file and wp_config file are correct. Anything else I should look at?

  2. dgilmour
    Member
    Posted 2 years ago #

    You could check that the .htaccess file is definitely readable.

  3. Did you set up the wildcard subdomains correctly?

  4. spes123
    Member
    Posted 2 years ago #

    OK it gets more confusing.
    http://www.simonegansmith.com (main site) and WP site works OK
    http://www.badcreditloans.simonegansmith.com setup as part of multisite does not work
    http://www.growingyourownveg.com/blog setup with a separate mysql database and WP install does not work

    All on on the same host.

    Everything started to go pear shaped when
    1. another subdomain (not a wp site) started to get spammed and my hostig company said to created .htaccess rules to block them.
    2 upgraded to wp 3.3.1

    to answer dgilmour I assume the .htaccess file is being read as the spamers are now block.

    to answer Ipstenu I assume so as they were working before.

    here is the.htaccess file

    [Code moderated as per the Forum Rules. Please use the pastebin]

    I hope I have entered that correctly

  5. spes123
    Member
    Posted 2 years ago #

    ok I think I've done it right this time
    http://pastebin.com/z34zysSF

  6. spes123
    Member
    Posted 2 years ago #

    yes http://www.badcreditloans.simonegansmith.com opens but none of the links on that page work, they all open the front page of http://www.simonegansmith.com.

  7. Sadly I can't look at pastebin right now, but when I can, I'll see if they buggered that one...

  8. spes123
    Member
    Posted 2 years ago #

    Got it fixed

    The upgrade had overwritten the wp-config.php file and the line
    define( 'SUBDOMAIN_INSTALL', true );

    had been changed to false!

    Thanks to Ipstenu and Dgilmore for their help.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.