WordPress.org

Ready to get started?Download WordPress

Forums

Mask my wordpress URL (7 posts)

  1. whitsey
    Member
    Posted 2 years ago #

    I have the URL of my website: http://www.domain.com/ and I have setup a wordpress blog on http://blog.domain.com/.

    1. is there a way I can mask the WordPress URL to always look like http://www.domain.com/? (i.e. although it is accessing http://blog.domain.com/, can I rewrite the URL to read http://www.domain.com/)
    2. Can I force a 404 at http://www.domain.com/ to redirect to http://blog.domain.com/ and then if not found show 404 page?

    Thanks in advance

  2. Jonas Grumby
    Member
    Posted 2 years ago #

    I have the URL of my website: http://www.domain.com and I have setup a wordpress blog on blog.domain.com.

    So, you have WordPress in a folder called /blog and you have set up a subdomain?

    http://codex.wordpress.org/Moving_WordPress

  3. whitsey
    Member
    Posted 2 years ago #

    It is on a sub-domain: http://blog.domain.com/

  4. Jonas Grumby
    Member
    Posted 2 years ago #

    Usually a subdomain is just another way of addressing a subfolder. If you FTP to your server, are the files in a subfolder called /blog?

    Did you read this?

    http://codex.wordpress.org/Moving_WordPress

  5. whitsey
    Member
    Posted 2 years ago #

    I don't want to move it, I want to mask blog.domain.com

  6. Jonas Grumby
    Member
    Posted 2 years ago #

    You actually don't have to move any files. You can just use your hosting control panel or ask your hosting tech support to point your domain name to the subfolder. You would have to change the URLs in Settings > General first, or use these instructions to reset the URLs after the domain name has been pointed directly to the subfolder.

    http://codex.wordpress.org/Changing_The_Site_URL

    This is a preferable setup when you want to have multiple installations of WordPress on one hosting account, and in fact it's how my site is set up. I have about 6 installations of WordPress running and resolving to different domain names. None of them are in the root folder of my hosting account.

  7. 3x7
    Member
    Posted 1 year ago #

    +1 looking for same solution...

    I would like all my subsites to show MAIN.com

    reason:
    I have translated versions of subsites, so the url is pretty confusing - LNG.domain.com/SUBSITE/...
    the same is with subdomain mode - SUBSITE.domain.com/LNG/...

    and the same would be if I move lan before subdomain - LNG.SUBSITE.domain.com/...

    I would just like it to show domain.com/... all the time, at least domain.com/LNG/... or LNG/domain.com/... would be good enough...

    questions:
    1. Is there any way to remove SUBSITE slug (like there are plugins to remove all kind of slugs /category, /tag, /author slug etc...)

    2. If not, should I try it with domain mapping?

    3. Should I just forget about it and accept it the way it is? :)

    Thank you

    Cheers!

Topic Closed

This topic has been closed to new replies.

About this Topic