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

Viewing 12 replies - 1 through 12 (of 12 total)
  • 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.

    Thread Starter johnnywp

    (@johnnywp)

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

    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.

    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.

    Thread Starter johnnywp

    (@johnnywp)

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

    Thread Starter johnnywp

    (@johnnywp)

    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.

    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.

    I mean if I add “test.htm” in my wordpress directory

    So, where is your WP directory?

    Moderator Samuel Wood (Otto)

    (@otto42)

    WordPress.org Admin

    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.

    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.

    Thread Starter johnnywp

    (@johnnywp)

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

    Moderator Samuel Wood (Otto)

    (@otto42)

    WordPress.org Admin

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

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘How do I add a webpage?’ is closed to new replies.