Redirection of CNAME (10 posts)

  1. Allen
    Posted 4 years ago #

    Hi All
    I'm running a wordpress ms site that is installed with the url, say, http://www.example.com It works fine.

    Now, because I need to run this under my university branding (USC), the web services at the university has a CNAME of myweb.usc.edu pointing to http://www.example.com

    The problem is that when I type in a browser myweb.usc.edu it resolves to http://www.example.com

    I contacted BlueHost where http://www.example.com is hosted, and they said I needed to change a setting in WordPress to keep it from redirecting.

    But where is this done? Note, at this point, all the settings in the database and elsewhere appear to be for http://www.example.com

    Any ideas on how to solve this without completely bringing down my site?


  2. Tim Moore
    Posted 4 years ago #

    Look at this: http://codex.wordpress.org/Changing_The_Site_URL

    Pay particular attention to the Multi Site notes at the bottom.

  3. Allen
    Posted 4 years ago #

    Thanks...but this looks like what you do when you change the site's url (am I wrong?). In my situation, the site will stay at http://www.example.com, but when you type in myweb.usc.edu, I don't want the address bar to redirect it to show http://www.example.com, but instead show myweb.usc.edu - which is what I can do with other web sites I run (that are not on wordpress, but Drupal)

  4. Tim Moore
    Posted 4 years ago #

    If you want all of your subsites in Multi Site to show up as myweb.usc.edu/<blogname>, you need to look at changing the site url. That's the only way it'll work, that I know of.

    If you want only the main site (blog #1) to show up as myweb.usc.edu, you could look at domain mapping. I can't remember if you can use it on blog 1 or not.


  5. Allen
    Posted 4 years ago #

    Thanks..well, this seems to be a big limitation of using wordpress. Guess I'll do this in drupal next time....here is why. Right now, I run our b-school's site at http://www.marshall.usc.edu

    this is a cname that points to

    which is a drupal site

    You can get to our site by going to either url without any problem..Drupal doesn't throw a redirect or anything, which is what WordPress seems to do.

    oh well. thanks

  6. Tim Moore
    Posted 4 years ago #

    The limitation, so to speak, is a choice about enforcing SEO. If I understand it correctly, if you have two URLs pointing at the same content, search engines will treat it as duplicate content and drop your site's ranking. The way you have it now (redirecting myweb.usc.edu to example.com) prevents that from happening.

  7. Allen
    Posted 4 years ago #

    Yes, I understand SEO and problems of duplicate content.....that isn't a problem at all in this context.

  8. And it looks like you're running a SINGLE install fo WordPress. So, you;re even in the wrong section of the forum. (yes, it matters in this case).

    WordPress stores the URL in the database.

  9. Allen
    Posted 4 years ago #

    I'm running a multisite version of WordPress..fyi, like I mentioned in the first post of this thread (wordpress ms)

  10. well we don't usually abbreviate it, so it's easy to miss. ;)

    No, you can't have any blog in the network - especially the main one - show up at multiple URLs without redirection.

    One address has to be the primary.

Topic Closed

This topic has been closed to new replies.

About this Topic