WordPress.org

Ready to get started?Download WordPress

Forums

changing blog path but not pages (5 posts)

  1. daver89
    Member
    Posted 6 years ago #

    Hi,

    I want my blog to be placed at /blog and then all the pages to be normal e.g. /about opposed to /blog/about.

    i noticed you can change the path of the blog to /blog but it does pages and everything too. so a page would be /blog/about.

    any help appreciated :)

    dave

  2. MichaelH
    Member
    Posted 6 years ago #

    Might want to review Moving WordPress.

  3. daver89
    Member
    Posted 6 years ago #

    Read through that but it doesn't seem to do what i want exactly. let me try and explain it better.

    i haven't got a wordpress blog yet, i am want to set one up like the following and i think all of those relate to moving and changing directories etc.

    my url is http://www.daveredfern.com

    by default that would show the latest 10 blog posts, or just the blog.

    i want that to appear at http://www.daveredfern.com/blog. i know i can do that by setting the blog address in the admin to /blog. but by doing that it sets all the pages on wordpress to /blog too. so if i have an about page it seems to set it to /blog/about. i want it to be just at /about.

    does that make more sense?

    thanks

    dave

  4. MichaelH
    Member
    Posted 6 years ago #

    Put the WordPress files and folders in the blog folder, set your Blog Address (URL) to http://www.daveredfern.com (WordPress address (URL) should be http://www.daveredfern.com/blog) and a index.php file (contents below) in your web-root folder. This is explained in Giving_WordPress_Its_Own_Directory.

    <?php
    /* Short and sweet */
    define('WP_USE_THEMES', true);
    require('./blog/wp-blog-header.php');
    ?>
  5. f00f
    Member
    Posted 6 years ago #

    MichaelH, at least for me that setup does not work. I am using the current svn version from today (which is between 2.3 and 2.5). I have everything configured as you suggested, i.e. my wp files are in /blog/ so 'siteurl' is <someurl>/blog and 'home' is <someurl>. In my opinion that 'moves' both, posts and pages, to <someurl>/permalink, right?

    But what I (and presumably also the OP) want to achieve is that blog posts are available (and permalinked) at <someurl>/blog/2008/02/post-slug while pages get URLs like <someurl>/page-slug

    Btw. when I try to access a post with /blog/ manually prepended to its URL I am getting a 404.

Topic Closed

This topic has been closed to new replies.

About this Topic