• I’ve seen this on here before but for the life of me when searching for it I can’t seem to find anything about it anywhere. What I want to do is change index.php to another page, possibly say index2.php that way I can create the index page on my own and not have it run on wordpress. If someone could tell me how to do this, or redirect me to a page that can I’d greatly appriciate it.

Viewing 11 replies - 1 through 11 (of 11 total)
  • Definitely WP will not work with a filename like that. And if you have WP’s index file in a directory (root or whichever) AND a file called index2.php – WP’s index will always show up first.

    You can move WP in a directory and have a different index file at root.
    Or, you can use a template file called home.php in your theme and THAT will take precedence over the index and displaying first – you can leave the Loop to show posts or not; you can edit it as you like. Posts will show up only in their category archives. (Warning: using home.php makes impossible to display ever the index.php of your theme)

    Thread Starter annam

    (@annam)

    So the only way to run wordpress and not have it be the defult index.php page would be to put it in it’s own directory? There’s no way at all to have it take the backseat, so to say, and have a page displayed before it?

    Well thank you for your help, I could have sworn there was a way to do it, but I’ll take your word for it 🙂 Different directory it is!

    I am having a similar problem/situation. I have a hosted site, and in that site I have two pages that are the lead-ins to my blog. The first page has been set as my home page, and it links only to the second page and I want the second page to link only to my blog, and for the blog to be used thereafter for the rest of my site, so that all navigation thereafter is done thru the blog. How would I set this up?

    Could your index page be index.html instead? Most servers will serve that first. Or, you could add index2.php to your .htaccess file as a directoryindex file and use index2.php to be your home page.

    Thank you for your speedy reply. My head is spinning with trying to figure things out, and I might not have explained my problem as well as I explained what I want to do.

    My site server serves up my own pages without a problem. And my blog works without any hitches so far as well. However, I have my pages, and I have my blog and I do not understand how to connect them.

    What I was hoping to do was just to set up a link on the second of my own intro pages that links to my blog, and from thereafter, the blog itself would do all my navigation (?!right?)~ I do understand how to set up the links and link categories and how to use the pages within WordPress, which is where all the other pages would be done.

    If you have index site (and other files) at the root level of your site – you have to move your WP install into a subfolder. That’s how it works.

    Thank you for bearing with me. My site directory looks like this:
    public html
    WordPress
    wp-admin
    all of its pages and sub folders
    wp-content
    all of its pages and sub folders
    wp-includes
    all of its pages and subfolders
    cgi-bin
    my page1
    my page2

    Is WordPress in its proper place? If so, what url would I use as link on my page 2 to point to it.

    If it is not in the right place, where would I move it to?

    Thank you.

    Looks like the url would be http: // yoursite.com/ WordPress/

    Sorry, sending again as the first post did not show the tree properly.

    public html
    …..WordPress
    ……..wp-admin
    ……….(pages and subfolders of wp-admin)
    ……..wp-content
    ………..(pages and subfolders of wp-content)
    ……..wp-includes
    ………..(pages and subfolders of wp-includes)
    …..cgi-bin
    …..index.html (set as my home page)
    …..my page 2

    Is WordPress where it ought to be, and if so, then what URL would I use on my page 2 to link to it?

    If it is not in the right place, where would I move it, and then what URL would I use to link to it?

    Thank you for your patience.

    issue resolved. I did what you had said, and it works great. do not understand why it didn’t do that the first time I tried it, but, who knows.
    Thank you all for your effort and especially patience.

    Same addy, http: // yoursite.com/ WordPress/ (I note it’s spelled with the two caps though). However, you need some other files within the WordPress folder, hope they’re there, and you just didn’t feel like posting it all.

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘different url for homepage?’ is closed to new replies.