Forums

error when attempting to make blog appear in non-root folder (11 posts)

  1. wolffw
    Member
    Posted 4 years ago #

    Hello,

    I am trying to make my blog appear in a non-root folder, as explained at http://codex.wordpress.org/Pages#Making_your_blog_appear_in_a_non-root_folder

    The specifics:

    I would like the home page to be: http://williamwolff.org
    I would like the blog to appear at: http://williamwolff.org/composingspaces/

    The latter URL is the name of my blog and others know that URL so I would like it to stay that way.

    As per the instructions, I created the blog.php, but called it composingspaces.php and changed the items in the file to reflect that change:

    <?php
    /*
    Template Name: Composingspaces
    */

    // Which page of the blog are we on?
    $paged = get_query_var('paged');
    query_posts('cat=-0&paged='.$paged);

    // make posts print only the first part with a link to rest of the post.
    global $more;
    $more = 0;

    //load index to show composingspaces
    load_template(TEMPLATEPATH . '/index.php');
    ?>

    Because I am using 2.3.2, I did not create the home.php file. Rather, I created a blank page and set it to home with the default template (which should not look so poor, I might add). When I try to go to http://williamwolff.org/composingspaces/ I see this:

    Index of /composingspaces

    * Parent Directory
    * wp-content/
    * wp-includes/

    Any and all suggestions are greatly appreciated.

    BW

  2. moshu
    Member
    Posted 4 years ago #

    You are reading the wrong instructions!
    That applies for pre-2.1 WP versions...

    Here is what you need to remember:
    http://codex.wordpress.org/Pages#Using_a_Page_as_the_Front_Page_.28version_2.1.2B_only.29

  3. wolffw
    Member
    Posted 4 years ago #

    Okay, so if I set "home" as the front page, how do I get the blog URL to be at williamwolff.org/composingspaces/ ?

  4. moshu
    Member
    Posted 4 years ago #

    Make a Page (not post!) with the title: Composingspaces
    and select it as your posts page in the options.

  5. wolffw
    Member
    Posted 4 years ago #

    Okay, I did that. I have the Front Page called "home" and the Posts Page "Composingspaces".

    I am still getting this when I got to /composingspaces:

    Index of /composingspaces

    * Parent Directory
    * wp-content/
    * wp-includes/

    Thanks,
    BW

  6. moshu
    Member
    Posted 4 years ago #

    Then you are doing something wrong!
    Do you have a physical file or folder with that name? Delete it.

    When in WP forum you read "create a Page" that means login to admin > Write > Write Page.

  7. wolffw
    Member
    Posted 4 years ago #

    Yes, I created the pages via the dashboard Write Page.

    The thing with the directory is this: I do not have one, but one is created for me called "composingspaces" when I try to view that page. That is really weird. . . .

  8. moshu
    Member
    Posted 4 years ago #

    No, WP does NOT create real directories, all that stuff you see in URL are only "virtual directories".
    However, the error you get clearly points to the existence of a physical directory with identical name.

  9. wolffw
    Member
    Posted 4 years ago #

    Okay, I wen through and tried to delete it another way and that has seemed to work. Ugh.

    Thanks.

    BW

  10. moshu
    Member
    Posted 4 years ago #

    Glad it worked... altough the "another way" made me curious. The only normal way to delete a directory or file is to connect to your host via FTP and do whatever you want to do.

  11. wolffw
    Member
    Posted 4 years ago #

    One last question, moshu, as I'm sure you're getting sick of me today.

    Is the only way to fix the images now that I have moved wordpress over to the root, and have set the blog posts to appear at /composingspaces/ to use, as it says in the instructions:

    http://www.tamba2.org.uk/wordpress/move3/

    If you go to http://williamwolff.org/composingspaces/ you will see that none of the images are appearing.

    Thanks,
    BW

Topic Closed

This topic has been closed to new replies.

About this Topic