• [ Moderator note: moved to Fixing WordPress. ]

    Hi,

    I am working on a website where the current homepage is index.html and would like to install WordPress to the root folder. When I do this, will it set the homepage as the index.php WordPress file? Is there a way I can avoid this happening?

Viewing 7 replies - 1 through 7 (of 7 total)
  • Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    no, the main page for WordPress is index.php. Just delete index.html and your new site will take over the URL.

    Thread Starter atrag

    (@atrag)

    Thank you for the reply but I want to keep the correct index.html as the home page for now. Is that possible?

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    You can’t have an index.html and expect wordpress to work.

    Thread Starter atrag

    (@atrag)

    Can you clarify what you mean by “work”?? I want it to work differently to the normal, sure, but I don’t think what I want to do is technically impossible. I must have seemed like an idiot to you. Let me explain:

    I am working on a site with around 1 million visitors per month. It has around 13000 seperate html files and no content manager. We havent the resources to immediately transpose the entire site to wordpress but we want a large number of pages to be generated by wordpress as posts. This can be done by custom permalinks that correspond to the fixed html pages, I believe. My problem is that if I install wordpress in the root, will it change the homepage from the index.html file? If so, how can I stop this.

    Thank you.

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    No, you can leave the home page as index.html — that will point to your static site, but wordpress routes everything through index.php in the site’s root.

    Set up a test site to work all this out.

    You can install wordpress in it’s own directory and leave the root site in tact:

    https://codex.ww.wp.xz.cn/Giving_WordPress_Its_Own_Directory#Method_II_.28With_URL_change.29

    You can then, in the root .htaccess file (assuming root site uses one), create redirects to the same page in the new folder…once done with all the pages, move WP site to root, remove the rules, have the site re-indexed properly and you will not lose SEO.

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    I agree with Pioneer!

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘Will WordPress Change Homepage Access?’ is closed to new replies.