WordPress.org

Ready to get started?Download WordPress

Forums

How to remove index.php file without killing WP? (2 posts)

  1. signa
    Member
    Posted 1 year ago #

    I want to merge WordPress and Joomla into one directory using different databases. It's possible because there is not any same folder/file except index.php! it is because I want to handle WP & Joomla under the same domain.
    It means the domain opens the index.php of Joomla but other pages of WP will be available too:
    Example:
    DOMAIN/index.php opens index of Joomla
    DOMAIN/index.php/component/users/?view=login opens login page of joomla
    DOMAIN/index.php/wp-login.php opens login page of WP

    I DON"T WANT this form:
    DOMAIN/WP-OLDER/index.php/wp-login.php

    If delete normally the WordPress's index.php, WP won't work! How should I delete index.php of wp in a case of WP-working?

  2. You could try running WordPress from a sub-directory with the appearance of running from the domain root.

    If you reference Giving WordPress Its Own Directory, there's a step for copying your WordPress index.php and .htaccess files to the domain root and modifying the include path ... something along the lines of changing require('./wp-blog-header.php'); to require('./your-dir/wp-blog-header.php');.

    You might try pasting the require into Joomla's index.php file in the domain root. It MIGHT work, though I'm not sure how much Joomla will enjoy the foreign require. Depending on which index.php you actually plan to display, you'll need to sort of hijack the index from rendering.

    The downside is that technically your login URL WILL fall into your "don't want" category because of the subdirectory. Frankly, it sounds like a regex nightmare to try and get permalinks working properly, cross-platform.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags