WordPress.org

Ready to get started?Download WordPress

Forums

Change index.php to something else (5 posts)

  1. Tony Bianco
    Member
    Posted 1 year ago #

    My client is currently on wordpress and they wanted me to put a static website up there as an in-between till we migrate over to wordpress with the new rebrand.

    We still use a lot of the old content and links, but only want people to go there if we are linking to it or if a link is existing in print materials.

    I'm wondering if there is a way to keep both a wordpress install and a static website up at the same time.

    WordPress uses the index.php, is there a way to tell wordpress to use something like default.php or website.php or oldwebsite.php as the "index.php" that contains all of the loops and fall back?

    I'm sure there has to be a way where you can include it some config file or settings, but I haven't ran into it yet.

  2. tomontoast
    Member
    Posted 1 year ago #

    You just need to rename index.php and rename the reference to it in your .htaccess file.

  3. Tony Bianco
    Member
    Posted 1 year ago #

    I wonder if that will work because I forgot to mention that the static website I'm putting up has an index.php file, so that's why I'm trying to figure out if I can change the wordpress index.php file name and keep the non-wordpress index.php intact.

  4. tomontoast
    Member
    Posted 1 year ago #

    I assumed as much. That will work.

  5. Tony Bianco
    Member
    Posted 1 year ago #

    Ok great. I'm going to test this out. :)

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.