Forums

A temp HTML home page (9 posts)

  1. jomonto
    Member
    Posted 4 months ago #

    Hello everyone.

    I have a single HTML page that I would like everyone to see for the next two weeks, when they visit our club's site. I have created the page, saved it as "index.php" and placed it in the root of my wordpress folder.

    When I go to the site, this temp page comes up just fine.
    I of course also renamed the original index.php file to kounty.php

    So on the temp page - I briefly thank sponsors (it's a tournament) - and then created a link to go to the regular club website. I have a "href=" html anchor calling the kounty.php file.

    When you click on the link, it takes you to the original club site, It's my theme and layout... but I also get:
    "Sorry, no posts matched your criteria."

    Is this NOT the correct way to make this happen, should I be doing this another way?

    Thanks for your time and assistance,

    john-

  2. Otto42
    Moderator
    Posted 4 months ago #

    You shouldn't replace the index.php file. Instead, you should make a new file, call it front.html or something, then use a DirectoryIndex directive in .htaccess to make that your default page. This assumes you're using non-default Permalinks, of course.

  3. jomonto
    Member
    Posted 4 months ago #

    Otto42-

    I tried that too (forgot to mention) - with the same results.
    Let me research the "non-default Permalinks" - not sure about that.

    thanks,

    john-

  4. Otto42
    Moderator
    Posted 4 months ago #

    Default permalinks look like this:

    http://example.com/?p=42

    Non default permalinks look like this (or similar):

    http://example.com/2009/07/07/the-meaning-of-life-the-universe-and-everything

    Look at the Settings->Permalinks page in your WordPress admin.

  5. dbmartin
    Member
    Posted 4 months ago #

    Are you essentially creating a welcome screen/page thanking sponsors? When someone visits your site, they see this screen, and on the screen there's a link into the site? Or are you linking to an external site?

    If you're just wanting to set a welcome screen, you could create a new page and set it as your Front Page under you WP Dashboard Settings (Settings » Reading Settings » Front Page Displays).

  6. jomonto
    Member
    Posted 4 months ago #

    Ok-

    I am apparently using 'non-default Permalinks'
    Custom structure: /%postname%/

    I will replace the original index.php, change the temp file to index.html and return with all the results again.

    thanks,

    john-

  7. Otto42
    Moderator
    Posted 4 months ago #

    dbmartin's way is equally valid, and works entirely with WP.

    Basically it's a three step process.
    1. Create a new Page in WordPress with your front page content.
    2. Create a new Page in WordPress which will be blank, but which will have a name of "blog" or something.
    3. Set it up on the Settings->Reading page.

    The root will now be your welcome page, and the blog posts will show up on http://example.com/blog/ or whatever. You'll have to make a link to that in your front page content.

  8. jomonto
    Member
    Posted 4 months ago #

    I apologize-

    Had to walk away for bit...
    Right now, I guess I'm really using WP as a CMS.
    I already am using a static page with the settings you described .
    http://brctennis.com

    So maybe this is why things are askew... maybe I just can't do what I'm trying ?

    thanks again,
    john-

  9. dbmartin
    Member
    Posted 4 months ago #

    So you want this thank you page to show before the main page of brctennis.com?

    I use WP as a CMS for a lot of my sites, so it's definitely flexible enough to do what you need it to do. I may just be having difficulty understanding exactly what you want to do.

Reply

You must log in to post.

About this Topic

Tags

No tags yet.