WordPress.org

Ready to get started?Download WordPress

Forums

How do I add a webpage? (13 posts)

  1. johnnyWP
    Member
    Posted 6 years ago #

    Hi, How do I add a non-wordpress-related webpage to my site if I have wordpress running? I have a post with information about a game. In that article it will link to the php or html page with the embedded game. I tried just creating a games-dir directory and putting my php page in there and just typing in the URL, but I keep getting a 404 error. Why can't I link to it? Thank you.

  2. kmessinger
    Volunteer Moderator
    Posted 6 years ago #

    You create a "Page" where you create a post. Look at the tabs. On the WordPress Page you can put just about anything and it will look like your website.

    Alternatively you can create an HTML "page" that looks like your webpage and link it to WordPress.

  3. johnnyWP
    Member
    Posted 6 years ago #

    But what if I just want a page unrelated to wordpress? Just a regular webpage linked to from my blog.

  4. Webmeba
    Member
    Posted 6 years ago #

    Well you could just try installing WP in a sub directory of your main site, or in a sub domain.

    You could also try just setting up your whole website using WP and create a static front page, which you could use as your homepage, creating more WP pages would give you webpages which accumulate to form a website, one of those pages could be your blog, the rest, your website.

  5. kmessinger
    Volunteer Moderator
    Posted 6 years ago #

    Whoa! Just create an html page anywhere on your website and link to/from it. Just because it may be in a WP folder does not mean it is related. Or created a folder called html pages and put it in there. This is not complicated.

  6. johnnyWP
    Member
    Posted 6 years ago #

    But why do I get the 404 error? Why can't I link to it? Is that apache or wordpress?

  7. johnnyWP
    Member
    Posted 6 years ago #

    kmessinger, I did that thinking the simple thing would work, but it doesn't. I must be doing someting obviously wrong. I mean if I add "test.htm" in my wordpress directory and type in the browser, http://mysite/test.htm, I thought the page would just work like any other page.

  8. moshu
    Member
    Posted 6 years ago #

    But why do I get the 404 error? Why can't I link to it?

    My bet would be that it is NOT where you think it is; i.e. you use a wrong path/URL in the link.

  9. moshu
    Member
    Posted 6 years ago #

    I mean if I add "test.htm" in my wordpress directory

    So, where is your WP directory?

  10. Samuel Wood (Otto)
    Tech Ninja
    Posted 6 years ago #

    Yeah, WordPress only takes over for non-existent pages and such. If you make a test.htm, then you can link to it normally. But I bet you're using the wrong URL.

  11. Webmeba
    Member
    Posted 6 years ago #

    Woops, kmessinger is right, I though you wanted your homepage set as some random html page.

    Just put the html files somewhere in your website and link to/from it. Usually a 404 appears when there is no such page so double check if the path your entering in the browser is correct.

  12. johnnyWP
    Member
    Posted 6 years ago #

    Guys(gals), I'm sorry. I'm an idiot. I forgot my server was case sensitive. Sorry again.

  13. Samuel Wood (Otto)
    Tech Ninja
    Posted 6 years ago #

    Heh. For future reference, all URLs are case-sensitive, all the time. A server that is not case-sensitive is actually broken. :)

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.