What is the number of my wordpress homepage?

5 replies
Wondering if any techies could answer this question. I've installed a Plugin called No 404 Errors which redirects any 404 pages to the page of my choice. The plugin asks for a 'Wordpress Page number' Now I know how to find the page number, but not for my homepage - would really appreciate someone telling me what number to use?
#homepage #number #wordpress
  • Profile picture of the author MichaelAppleton
    Hey, I am not so sure the homepage has a page number, the homepage is the index file in the root folder of your installation.

    Say you have installed wordpress in the main directory then your homepage would be yourdomain.com/index.php and if you have installed within another directory then it would be yourdomain.com/directory/index.php and so on. Not everyone uses page numbers, I know I do not for SEO reasons. try entering the above and see how it goes.

    If you need to redirect to the homepage but the above doesn't work, try activating the plugin but leaving it blank, this may forward it on to the root directory. Failing that you could create another page and put a redirect script back to your homepage.

    Hope this may have helped.
    {{ DiscussionBoard.errors[2994030].message }}
  • Profile picture of the author jasonmorgan
    I don't think it has one. Just for giggles, try 0 or 1 and see what happens.
    Signature

    I'm all about that bass.

    {{ DiscussionBoard.errors[2994032].message }}
  • Profile picture of the author SpaceAge
    I think I've found a solution for you:

    To find the page number simply hover over the edit link on the list of pages page on the dashboard. The main plugin then intercepts 404 errors, redirects the browser to this page and assigns a 301 code. The only minor complication is that your error page will appear in the output of the wp_list_pages function. The solution is to add the page number to the exclude parameter wherever that function is called.

    Hope this helps
    {{ DiscussionBoard.errors[2994054].message }}
  • Profile picture of the author japhyryder
    Thanks a lot guys - what a great forum this is!
    Signature
    www.lewesseo.com - 5 St James St, Lewes, BN71HR
    {{ DiscussionBoard.errors[2994059].message }}
  • Profile picture of the author japhyryder
    Tried leaving it blank and, what do you know, it goes back to the homepage! Bingo....
    Signature
    www.lewesseo.com - 5 St James St, Lewes, BN71HR
    {{ DiscussionBoard.errors[2994065].message }}

Trending Topics