WordPress.org

Ready to get started?Download WordPress

Forums

Clean URL main site, WP outside webroot (2 posts)

  1. hdcrunch
    Member
    Posted 2 years ago #

    I am trying to get a WP install working under a very specific setup. My website root will not be a WP page, but will have WP elements. WP will be accessible through a /blog/ URL. However, here is the problem.

    I run everything through a main index.php in my webroot, and keep all other PHP files, including WP, outside the webroot directory. The main site (as well as WP) uses clean URL's. My site is hosted on a 3rd party cloud system, so I do not have access to the httpd.conf file, where one would normally put aliases and so forth, so I am restricted to .htaccess per-directory files.

    It is possible to use a rewrite rule to redirect all /blog/ requests over to another directory. However, the directory must be inside webroot, so that method is out of the question. I have also tried handling the /blog/ requests inside the webroot index.php by directly including the WP index.php fie, but WP does not seem to like that very well - it doesn't display anything.

    So my question is, is there any way to run WP entirely outside of webroot, using clean URL's on the main site which also incorporates WP elements, without being able to make aliases?

  2. govpatel
    Member
    Posted 2 years ago #

    Check this out see if this helps on how to use wordpress from directory

    http://codex.wordpress.org/Giving_WordPress_Its_Own_Directory

Topic Closed

This topic has been closed to new replies.

About this Topic