WordPress.org

Ready to get started?Download WordPress

Forums

Recurring Problem with 3.6, core files in subfolder, site url at root (8 posts)

  1. owlsheadbiz
    Member
    Posted 11 months ago #

    I just installed my first instance of 3.6. This is the third install in the same linux hosting account on a godaddy server.

    I installed to the root, then followed the standard procedures (http://codex.wordpress.org/Giving_WordPress_Its_Own_Directory) to move the core files to a subdir.

    Once that process was complete, I attempted to login. I got a series of errors, where the files were not found because they were looking at the root directory instead of the subdirectory. I walked through the process of opening and saving (with no edits) several files scattered around the installation. Once I opened and saved a file, the error would move on to the next file.

    Hoping this is a matter of caching and will resolve itself once I clear my browser cache. But wondering if anyone else has seen this? I have done this with many sites (pre-3.6), and this is a first for me.

    Thanks,
    ~KJ

  2. owlsheadbiz
    Member
    Posted 11 months ago #

    Clarification: this is the third instance of WordPress, but the only one that is 3.6 - the other sites are scheduled to be updated.

  3. owlsheadbiz
    Member
    Posted 11 months ago #

    FYI, just cleared cache, still having the problem. Went straight to the site domain, as if to view the homepage, and got an error. Had to open and save the file in question (no edits), then it went through.

    The files that pop up in the error are varied and in different folders. I can't find a real rhyme or reason to it.

  4. bemdesign
    Member
    Posted 11 months ago #

    Have you read through this: http://codex.wordpress.org/Moving_WordPress ?

    You may also need to put in global directives in your wp-config.php to help WordPress locate where the files actually reside physically on the server.

  5. owlsheadbiz
    Member
    Posted 11 months ago #

    I did read that - I've done the process several times and I read the procedure guidelines every time to be sure I don't forget anything.

    I'm unfamiliar with putting in global directives in wp-config.php ... can you give me an example?

  6. bemdesign
    Member
    Posted 11 months ago #

    http://generatewp.com/ can help you generate this but basically:

    /* Custom WordPress URL. */
    define( 'WP_SITEURL', 'http://example.com' );
    /*your site URL*/
    define( 'WP_HOME', 'http://example.com/wordpress' );
    /*where your WordPress files are*/
    define( 'WP_CONTENT_URL', 'http://example.com/wordpress/wp-content' );
    /*where your wp-content directory resides*/
    define( 'UPLOADS', 'http://example.com/wordpress/wp-content/uploads' );
    /*where you want uploads to be placed*/
    define( 'WP_PLUGIN_URL', 'http://example.com/wordpress/wp-content/plugins/' );
    /*where the plugins folder resides*/

    So you can have your site URL actually different then where the actual WordPress site folder sits on the server and, in fact, with these global directives, you can have your wp-content folder placed completely outside of your normal WordPress install.

  7. Brazen4
    Member
    Posted 11 months ago #

    @bemdesign:

    This looks wonderful, but how will this affect a sub-directory multi-site setup? My story: I have a static html site on the root of my host (radiant-homes.com) which when typed calls index.htm and loads.

    I recently wanted to try out WP and setup a blog in a sub-directory (radiant-homes.com/blog/) and all is well. I fell in love with WP so much, I decided to setup multi-site and re-create my original static page into WordPress format. (ugh.... what a learning exp but I got it!) The "new" (main) re-creation site is @ radiant-homes.com/blog/wp/ and everything works so far!

    Now, I want to DEL the old html site and have radiant-homes.com load the WP site located @ radiant-homes.com/blog/wp/ I think this would be easier if I didn't have multisite and quite frankly, I'm scared! I put in umpteen hours building my WP static site from scratch! LOL

    Thanks in advance....
    Jim
    PS: My multisite wp-config.php entry

    /* Multisite */
    define( 'WP_ALLOW_MULTISITE', true );
    define('MULTISITE', true);
    define('SUBDOMAIN_INSTALL', false);
    define('DOMAIN_CURRENT_SITE', 'radiant-homes.com');
    define('PATH_CURRENT_SITE', '/blog/');
    define('SITE_ID_CURRENT_SITE', 1);
    define('BLOG_ID_CURRENT_SITE', 1);
    --------------------------------------------------------------
    PSS: my multi-site .htaccess file

    RewriteEngine On
    RewriteBase /blog/
    RewriteRule ^index\.php$ - [L]

    # add a trailing slash to /wp-admin
    RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L]

    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^ - [L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*) $2 [L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L]
    RewriteRule . index.php [L]

    # BEGIN WordPress
    # <IfModule mod_rewrite.c>
    # RewriteEngine On
    # RewriteBase /blog/
    # RewriteRule ^index\.php$ - [L]
    # RewriteCond %{REQUEST_FILENAME} !-f
    # RewriteCond %{REQUEST_FILENAME} !-d
    # RewriteRule . /blog/index.php [L]
    # </IfModule>
    # END WordPress

  8. bemdesign
    Member
    Posted 11 months ago #

    @brazen4 - per the forum guidelines, start your own post topic (think of these as help tickets) and I and others will be glad to help you out.

Reply

You must log in to post.

About this Topic