Support » Networking WordPress » Redirection of CNAME

  • 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?

    Thanks

Viewing 9 replies - 1 through 9 (of 9 total)
  • Look at this: http://codex.wordpress.org/Changing_The_Site_URL

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

    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)

    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.

    http://ottopress.com/2010/wordpress-3-0-multisite-domain-mapping-tutorial/
    http://wordpress.org/extend/plugins/wordpress-mu-domain-mapping/

    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

    http://live.uscmarshall.gotpantheon.com/
    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

    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.

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

    Andrea Rennick

    (@andrea_r)

    Customer Care at Copyblogger Media and Studiopress

    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.

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

    Andrea Rennick

    (@andrea_r)

    Customer Care at Copyblogger Media and Studiopress

    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.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Redirection of CNAME’ is closed to new replies.