Question about sub-directory of self-owned domain

  • Author
    Posts
  • #1120768

    davidtenser
    Member

    Hi all,

    I’ve had my blog hosted at djst.org/blog for over six years, running on my own little server in my closet, and now I’m looking into switching over to a wordpress.com-hosted solution for added uptime and reliability.

    It looks like wordpress.com offers to point my existing domain djst.org to my new blog here on wordpress.com, but what about the sub-directory /blog? Is it possible to make it so that that continues to work at least as a redirect?

    In other words, I want anything djst.org/blog/* to still work by redirecting it to djst.org/*. Can this be achieved? Otherwise I will probably have to look for another hosted solution for my blog, which would be a shame since wordpress.com seems great and simple.

    Thanks!

    The blog I need help with is davidtenser.wordpress.com.

    #1120861

    tandava108
    Member

    Yes,
    WHat you have to do is map the main domain to WordPress, which means pointing the name servers to WordPress. Then in the Stores->Domains->Edit DNS you can add a CNAME record like

    CNAME blog djst.org.

    #1120867

    tandava108
    Member

    Ignore my previous comment if “djst.org” is the domain that you are mapping to the WordPress blog! You could only use a CNAME if the resource is mapped by another domain, different to the main A-record domain:

    CNAME blog another.org

    Otherwise you will have to use an A record

    A blog 1.2.3.4

    where 1.2.3.4 is the IP address of your server

    #1120894

    davidtenser
    Member

    Let me clarify: the blog originally lived on my server under the /blog directory. My server currently uses the djst.org domain, but that’s the exact same domain that I now want to use with my new wordpress.com blog.

    So, I want to use djst.org for my davidtenser.wordpress.com blog, but I need to make sure that anyone who accesses djst.org/blog/* can still end up correctly on the imported blog posts, which I assume will live directly under djst.org/* once the domain is hooked up to the wordpress.com blog.

    Makes sense? Is that possible? Otherwise all djst.org/blog/* permalinks out there will lead to 404 errors because the blog now lives at djst.org/*.

    Thanks!

    #1120902

    tandava108
    Member

    OK I’m clear what you’re doing now – but I’m afraid the answer is I’m not sure. You can certainly have a subdirectory mapped to a different blog – I have that myself with http://western-hindu.org/ and http://tech.western-hindu.org/ but I’m not sure about the same blog.

    I think you may be able to do it by having both a domain mapping and a subdomain mapping. In theory it should work (the domain mapping being set to primary), but there is always the chance you will get an error message saying “domain already mapped”.

    You could either try it and if it doesn’t work cancel the second domain mapping upgrade under the 30-day refund or ask staff (by either a support request or a suitably titled thread here). Trying it yourself would be the quickest option!

    #1120906

    You can map a subdomain ( subdomain.domain.tld ) to WP, but I don’t see where you can map a directory ( domain.tld/directory ).

    http://en.support.wordpress.com/domains/map-subdomain/#adding-a-subdomain-if-your-domain-is-mapped-to-wordpress-com

    #1120911

    tandava108
    Member

    Whoops notawoodpecker is right, I was talking about a subdomain not a subdirectory.

    The good news is that it appears that you do don’t have to do anything for this to work;

    http://davidtenser.wordpress.com/blog/2012/06/26/firefox-for-android-finally-ready-for-prime-time/

    gives the same page as http://davidtenser.wordpress.com/2012/06/26/firefox-for-android-finally-ready-for-prime-time/ etc.

    The only thing you might want to do is create an article “blog” to be displayed when someone enters http://davidtenser.wordpress.com/blog

The topic ‘Question about sub-directory of self-owned domain’ is closed to new replies.