Viewing 13 replies - 1 through 13 (of 13 total)
  • Actually I wish the subject of this thread was “How do I make WordPress act as my main page?”

    This assumes WordPress is in a folder called wptheme and that the wptheme folder is in our web-root folder.

    To make WordPress available at https://mydomain.com just change in Settings->General, the Blog address (URL) to https://mydomain.com and put this index.php file in your web-root folder (it is the same folder that contains the wptheme folder)

    <?php
    /* Short and sweet */
    define('WP_USE_THEMES', true);
    require('./wptheme/wp-blog-header.php');
    ?>

    You may find it necessary to delete the index.html file in your web-root folder.

    Then update your permalinks in Settings->Permalinks.

    That is exactly what I was going to ask.

    Follow-up: correct me if I’m wrong, but the folder structure should be mydomain/httpdocs/wordpress/wp-content(etc)/themes(etc)/mytheme
    and I should put the above index.php file in the root folder.

    tekdiver500ft – you are correct about the placement of the theme sub-folder and its files. That’s why dismar’s question was a bit confusing…

    And the above index.php I specified does go in the web-root folder, which, in your case, looks to be httpdocs.

    Thanks. My question is, though, won’t that make the docs say https://www.mydomain.com/wordpress/page?

    Test domain I have that same setup and the page called sitemap has URL mydomain.com/sitemap

    okay, thanks.

    I’m doing something wrong, here. Any way you can tell me what?

    domain: https://www.blackeaglestudios.com
    root folder: httpdocs
    wordpress is subfolder of httpdocs
    index.php says…
    <?php

    /* Short and sweet */

    define(‘WP_USE_THEMES’, true);

    require(‘./wptheme/wp-blog-header.php’);

    ?>

    HELP!!

    I’m doing something wrong, here. Any way you can tell me what?

    domain: https://www.blackeaglestudios.com
    root folder: httpdocs
    wordpress is subfolder of httpdocs
    index.php says…
    <?php

    /* Short and sweet */

    define(‘WP_USE_THEMES’, true);

    require(‘./wptheme/wp-blog-header.php’);

    ?>

    HELP!!
    If you need more/better/detailed information, email me at
    fritz[at]blackeaglestudios[dot]com

    oh, this is what I get when I try to log in…

    Warning: main(blackeaglestudios.photocart./atahualpa/wp-blog-header.php) [function.main]: failed to open stream: No such file or directory in C:\Inetpub\vhosts\blackeaglestudios.ieasysite.com\httpdocs\Index.php on line 4

    Fatal error: main() [function.require]: Failed opening required ‘blackeaglestudios.photocart./atahualpa/wp-blog-header.php’ (include_path=’.;./includes;./pear’) in C:\Inetpub\vhosts\blackeaglestudios.ieasysite.com\httpdocs\Index.php on line 4

    If wordpress is in httpdocs/wordpress the that require entry in index.php should be

    require('./wordpress/wp-blog-header.php');

    Thanks. I’ll try that.

    that didn’t do it.

    Let me direct you to:
    Giving_WordPress_Its_Own_Directory

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘How to make WordPress theme the main page’ is closed to new replies.