Viewing 14 replies - 1 through 14 (of 14 total)
  • Are the wildcard subdomains also setup on the server side?

    Thread Starter bsirianni

    (@bsirianni)

    Yeah, I contacted my host and asked them to set up a wildcard DNS. and when I check my DNS setup in my control panel, it exists, just not sure if anything else needs to be setup?

    On some hosts, the wildcard subdomain records takes a bit to kick in & propagate.

    Url?

    Thread Starter bsirianni

    (@bsirianni)

    https://secondsea.com and I have set up https://test.secondsea.com/. I just called my host and it seems set up and working on their end. but the sub domains dont seem to be getting written.
    this is my .htaccess file

    # 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

    does that seem ok?

    and I have this line in my wp-config file
    define( ‘DOMAIN_CURRENT_SITE’, ‘secondsea.com’ );
    is that also correct?
    thanks heaps

    I just called my host and it seems set up and working on their end.

    And when I ping your domain, I get a reeeeeally slow response. the DNS record is there, the Apache record may have something wrong with it.

    (the htaccess files does not control the subdomains at all, just the rest of the URL)

    Thread Starter bsirianni

    (@bsirianni)

    Thanks Andrea – I dont have the access to the server, but have been on the phone to my host all morning with no luck, I will keep on them
    thanks

    Thread Starter bsirianni

    (@bsirianni)

    just a quick question, where does WP write subdomains to?
    at the moment if I create a folder in public/ the subdomain works, but WP does not create the subdomain in public/ ? could this be the problem… the way the sever is set up?

    Thread Starter bsirianni

    (@bsirianni)

    I have been getting support from Smartyhost.com.au, my host and these are some of their replies…

    “my gut feeling is the issues stems from the way WordPress attempts to use sub-domains vs the way we configure sub-domains.”
    &

    “The WordPress requirements for dynamic sub-domains differs from our implementation. We require that the directory is created alongside the public directory.”

    is this where wordpress creates subdomains?

    No, wordpress doesn’t create subdomains anywhere. It uses *wildcard* subdomains.

    If you have no way to tell the subdomains to go look in the wordpress folder, then you are stuck. Pick subfolders or move to a host with wildcard subdomains.

    This is a function on the server side. not all hosts support it.

    Thread Starter bsirianni

    (@bsirianni)

    hello, after much snooping I have found that the wildcard DNS is pointing to public, but I need it to point to public/www to find the .htaccess file.
    I am trying to put a .htaccess file in public that will redirect any subdomains to public/www – to where the WP files live…. I think I am close…

    would you have any idea of a redirect for the .htaccess file for the public folder?
    thank you

    I have the same problem but the domain I’m using it on is an addon domain on my shared hosting. It creates the subdomain site in the superadmin but when I click on the link it goes to my main domain as if it wasn’t found. I believe it would be a 404 error if it wasn’t a addon domain.

    My main domain is a WordPress MU and it works so I know what I’m doing. I have the wildcard, config file edit, and it was added to the db and .htaccess edit. Not sure if the htaccess is the problem. There was none. I had to create it so other than what the installation instructions were, there’s nothing else in the file.

    I believe if it were the main domain, it wouldn’t have any problems. I get the feeling I can’t use the wildcard on an addon domain. I’m not really using he main domain on my hosting account so if worse comes to worse, I would discontinue that account and make a new account. Obviously, I would prefer not to do that though. Anyone have any suggestions?

    bsirianni – are you sure you are supposed to upload your files to public/www ? Both my hosts I upload files to the public_html ? If so, it would be pointed to your htaccess file. Did you upload your files or use something like Fantasico to install? But what do I know? I thought I knew what I was doing with mine. Good luck. Let us know if you get it to work and how.

    I made a totally new installation of WP on a DIFFERENT hosting company and used Softaculous (like Fantastico) for a fresh install and I waited for the DNS to propagate and the results are the same…it ends up on my main domain on my other host which has nothing to do with this host. I deleted all my cookies and restarted firefox and even used IE…same results. I uploaded a new theme to it so I know my domain points to my new host. Totally weird!

    Wildcard subdomains on shared hosts never point to anything other than the main domain on the accout.

    The DNS record is only half of it. the host does the other half in Apache, and only does one – the main account.

    You can try to add test.secondsea.com as server alias
    Wildcards might not work in all servers.

    etai tavor

    webcell
    webcell @ facebook

Viewing 14 replies - 1 through 14 (of 14 total)
  • The topic ‘Multisite (sub-domains): are created but return a 404 error’ is closed to new replies.