• I have a question about organizing my site so that the site homepage (public_html/index.php) is controlled by WP when WP is installed in a subdirectory (public_html/blog). I understand that I can install WP in public_html/blog and have the blog home page in public_html/index.php. However, I want the blog home page to be displayed in public_html/blog/index.php, not public_html/index.php. But I do want public_html/index.php to still be controlled by WP so that I can use the WP header/footer/variables/methods in public_html/index.php.

    Perhaps a clearer way to ask this…Is there a way to set it up so public_html/index.php is treated like a custom “page” (in the WP sense) when the blog is installed in a subdirectory (public_html/blog) and the blog home page is located in (public_html/blog/index.php)?

    To summarize, I would like my structure like so…

    1. public_html/blog -> installation directory of WP
    2. public_html/blog/index.php -> the home page of the blog
    3. public_html/index.php -> the home page of the site, controlled by WP, perhaps like a “page” (in the WP sense).

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘control web root index.php from wordpress in subdir’ is closed to new replies.