• Hello,

    I’ve got the following problem. I’ve got my blog running fine at:

    https://www.witchkraftracing.com/index.php

    However I added a welcome page to my site (https://www.witchkraftracing.com/welcome.php), which comes up first when the site loads. Users then click and go to the blog portion of the site (by clicking on News).

    The problem I’m having is that when users click on a post, or want to comment, they get thrown back to the welcome page, because the URL for example, looks like like this:

    https://www.notsofast48.com/?p=201

    So in effect, the welcome page has thrown off all my permalinks, ability to comment on a post, etc. My question is, how can I fix that?

    Any help would be greatly appreciated ..

    Thanks.

Viewing 15 replies - 1 through 15 (of 17 total)
  • Delete that file or make it a Page template. That’s the normal way to do it. Then create a Page using that template and assing it as your front/home page (see Options > Reading).

    Don’t use non-standard template files and never acceess template files directly.

    And your blog’s URL should NOT include index.php!

    Thread Starter kraftomatic

    (@kraftomatic)

    Okay, I’ve done that. Thanks for the tip.

    However, now how do I differentiate between the new “welcome” page, and my “posts” page? For example, I want to start at the welcome page (when I can do from the Options->Reading you said), but I want that page to link to my original home page, which lists my blog posts and such.

    I’m sure it’s something simple I’m missing here ..

    Thanks ..

    Honestly, I don’t understand what are you trying to do. Which domain are we talking about? – you gave two of them in your initial post.

    Do you have some kind of redirect thingy that makes your root directory to go automatically to that welcome.php file? It will never work with that…

    Thread Starter kraftomatic

    (@kraftomatic)

    Sorry for the confusion. The domains are the same.

    I originally set the welcome.php page to first come up on initial load (adding it withing the .htaccess file). As I’ve found out with your help, that of course isn’t the correct way to do it.

    So I did what you said, I moved the welcome.php page into a “page” within WordPress. Through OPTIONS -> READING, I can now set that new “page” to come up on initial load of the blog. However, I want the blog page (the main page after the welcome page with posts and such) to be linkable from this new welcome page. My question is, how do I do that?

    Does that make sense?

    The domains are the same.
    That might be another basic problem.

    And no, you did NOT remove the file:
    https://www.witchkraftracing.com/welcome.php <== it is there!

    Thread Starter kraftomatic

    (@kraftomatic)

    It shouldn’t be. Everything references witchkraftracing.com.

    This is locally I’m talking about .. I can do it in the live environment if that helps, but didn’t want to move things over until I have it fully working.

    The way it stands now, I have no way of getting to the “news” page .. That’s why I was asking about a link/how to get there ..

    Because you don’t listen and you don’t want to give up your preconceptions. If you have a redirect in your htaccess file that redirects your root folder (example.com) to that welcome.php file – your blog will never work.
    Is it clear???

    Thread Starter kraftomatic

    (@kraftomatic)

    Yes yes it’s crystal clear. There’s no redirect on my machine locally. Here, I’ll move it live so you can see what I’m talking about ..

    Thread Starter kraftomatic

    (@kraftomatic)

    Okay – it’s updated live. https://www.witchkraftracing.com.

    welcome.php removed from .htaccess and all good to go. Now how do I access my “blog” page?

    You should spend more time in your own admin panel: Options > Reading. When you set up a Page as your home/front/main page you shouls also set up another Page as your posts page.
    And make that “news” link to point to it. Done.

    And change BOTH links in your menu: they are still referencing to the welcome.php and index.php…

    (and next time stop the music if you want help – it is so annoying to start music without asking me!)

    Thread Starter kraftomatic

    (@kraftomatic)

    Now I have the need for two different template “page.php” pages. I think I just need to figure out how to have the welcome page point to one template and the blog page point to another ..

    Thread Starter kraftomatic

    (@kraftomatic)


    And change BOTH links in your menu: they are still referencing to the welcome.php and index.php…

    (and next time stop the music if you want help – it is so annoying to start music without asking me!)

    Yes, but how? What do I like the welcome page to, and then the blog page to? Within WordPress, aren’t they both referenced by just https://www.witchkraftracing.com ?

    Yes I’m not finished on the music. It’s a recent addition not fully complete yet. I agree with your views on that as well.

    In my very first reply I pointed you to the Pages in the codex, referincing to make a new Page template. You can have endless number of Page templates and if you have the default (page.php) AND another one made as per the instructions… in the Write Page subpanel you can always select which template to use for a newly created Page…
    (I told you you should spend time in your admin and in the codex!)

    Yes, but how? What do I like the welcome page to, and then the blog page to? Within WordPress, aren’t they both referenced by just https://www.witchkraftracing.com ?
    Of course not. You should really learn about the tool you are using.

    Home should be = example.com
    If you set a Page as your frontpage WP will know to go there. Period.

    News = should point to a Page titled News, i.e. example.com/news
    And the Page titled “News” set as your posts page.

    Why are you overcomplicating it?

Viewing 15 replies - 1 through 15 (of 17 total)
  • The topic ‘Absolutely Referencing Pages’ is closed to new replies.