WordPress.org

Ready to get started?Download WordPress

Forums

Link Masking (6 posts)

  1. justinm715
    Member
    Posted 4 years ago #

    I have a WP blog hosted at a http://example.com/~name/wp [1]

    I have a domain name http://somewhere.com/ [2] I have set up this domain to forward any requests that go to it to [1]. For example, http://somewhere.com/123 goes to http://example.com/~name/wp/123 and http://somewhere.com/images/myimage.jpg goes to http://example.com/~name/wp/images/myimage.jpg

    Essentially, I would like to change the base URL of the links, images, etc. to be [2] with absolute paths instead of [1] with the relative path.

    (I'm certainly not a professional, so if I'm misguided, please do correct me - I'll learn something!)

    Cheers,

    Justin

  2. justinm715
    Member
    Posted 4 years ago #

    If not all is possible, would at least changing the post permalinks and pages links be possible?

    I basically don't want [1] to be visible. I want [2] to be visible.

  3. LeifAndersen
    Member
    Posted 4 years ago #

    I'm almost certain you can do it. Try going into the settings and changing the blog address URL (not the wordpress instalation URL).

  4. justinm715
    Member
    Posted 4 years ago #

    I've tried that. When I change that, though, accessing my posts and pages yields the following error page:

    Not Found
    Sorry, but you are looking for something that isn't here.

    All the CSS and links seem to be fine as the URLs use [2], but the content cannot be retrieved.

  5. LeifAndersen
    Member
    Posted 4 years ago #

    Hmmm...did you also try moving the wordpress install link? (note that if it dosn't work though, you will have to recover your install, but I don't believe that's too hard).

  6. justinm715
    Member
    Posted 4 years ago #

    the wp install link? by that do you mean the wordpress address? i've changed it to [2] and it seems to work, but then when i try to log in it doesn't log in (i just get the log in page again) and all the links have the path of [1]

Topic Closed

This topic has been closed to new replies.

About this Topic