• Resolved mrroy44

    (@mrroy44)


    Hi,

    I’m changing from a html website to a wordpress site. While filling my wordpress site, which is installed in the root directory I want to keep my original site online.

    WordPress generates a index.php page in the root, and I did change that to index_wp.php to make sure it doesn’t show up when people are visiting my current site which starts up with a index.html page.

    It now shows my wordpresspage at mydomain/index_wp.php but when I click a blogpost, it gives a page not found message. It works when I change index_wp.php to index.php, but then the site shows my wordpress page to all visitors, and I don’t want that, since it isn’t ready to go live yet.

    Is there a way to solve this?

Viewing 4 replies - 1 through 4 (of 4 total)
  • You can’t serve two sites from root at the same time. One site (logically, WordPress) will need to go in a sub-directory (and-or-on a sub-domain at your preference) for access during development. Then it can be moved to root when it’s ready to replace the existing site.

    Thread Starter mrroy44

    (@mrroy44)

    Thank you. Is there maybe another way in wordpress to let everybody visiting the page https://www.mydomainn.com being redirected to https://www.mydomainn.com/index2.html and still have othersite.mydomain.com showing the wordpress page?

    No. You cannot serve two sites at the same time from root. You can call any page you like by renaming it and knowing the new name, but the default behavior of the web server is to look for index.html, index.php, etc… WordPress uses index.php.

    Thread Starter mrroy44

    (@mrroy44)

    OK, thanks once again it’s clear now…no way around it

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘using index_wp.php instead of index.php’ is closed to new replies.