skip to Main Content

Can i install wordpress on only one page of a domain / subdomain ?

I would like to have a single-page wordpress site and the rest of the pages to be self developed.
For example:

I only want to display the (WordPress) webpage on www.domain.com/landingpage.html

and if a user enters on www.domain.com/index.html to have my custom landing-page page displayed instead.

I do not want to have a subdomain for wordpress and one for my self-made website like this:
www.domain.com/index.html AND www.login.domain.com/index.html

How can I create something like this without a subdomain or custom wordpress page created inside the wp install directory ?
Is it possible ? Best practices ? Thank you.

*On Cpanel, not locally.

2

Answers


  1. From what I can gather you want a WordPress instance but not for your entire web requirement. The best way to achieve this, based on the options you have identified above, is indeed to set up a sub-domain for your WordPress instance.

    I know that is not what you want but my advice would be you can’t have your cake and eat it with this one – as in WordPress and your other website somehow co-existing in the same space. Logistically speaking and from a best practice perspective, you’d be better off with some sort of overt, logical separation between WordPress and your other site content anyway.

    That said – you could have a default HTML landing page that can point to your WP instance but then the question is why not just let WP handle everything? Finally, if I may suggest, think again about the true context of what you want to achieve and you may find one default WP instance might be the best option after all, rather than splitting things up unnecessarily.

    Login or Signup to reply.
  2. Depends on what you mean by ‘one page’.

    1.) If you want to install WordPress on a single page, like a wp.php on your webserver, that won’t work. WordPress also has config files, an admin control panel and more things that are necessary to that one page. You can also install wordpress and delete every other page instead of the one you need. But you’re still keeping the other files that come up with the platform

    2.) If you wish to install WP in a certain directory, like mydomain.com/blog, you can obviously do that by creating a folder in your root directory, and uploading all the files that come together with the wordpress archive there. Then, proceed with the installation.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search