Wordpress - post under same url?

11 replies
So I want all my posts to be posted under

my site.com/blog

instead of just mysite.com



I want this to happen automatically and not using by using some kind of stuff every time I have to post something...

Will I have to create a sub-domain?
Not sure how that will work because sub domains are different I want it under the same URL only...


Help?
#post #url #wordpress
  • Profile picture of the author egoldzone
    Just use quick install and type "blog" after domain name/
    Signature
    > Instant Traffic Formula : Top Affiliate Make $568K in 30 days
    {{ DiscussionBoard.errors[9554912].message }}
  • Profile picture of the author weeklyes
    Do you already HAVE a wp blog on your root folder? If so, Giving WordPress Its Own Directory « WordPress Codex should help you out.

    If not, what the poster typed before me is spot on. Tell whatever installing package ur using that you want to install it in urdomain.com/blog .
    {{ DiscussionBoard.errors[9554933].message }}
    • Profile picture of the author video55
      Reinstall WordPress.
      You will get to a point where it says: Directory = wp (by default).
      Delete "wp" and type "blog".
      Complete installation.
      {{ DiscussionBoard.errors[9554966].message }}
  • Profile picture of the author MikeMiller
    Do you want to use Wordpress only for the posts under mydomain.com/blog/, or you want to use the same wordpress install to manage other parts of the mydomain.com website, like main page, other static pages, etc. and just make it post all posts under mydomain.com/blog/?
    {{ DiscussionBoard.errors[9554991].message }}
    • Profile picture of the author Jill Carpenter
      1. Create a page called "blog"
      2. Create another page called "home"
      3. Go to settings - reading - and look at the top - select the static page option
      4. Select "front page displays" and select "home"
      5. For posts page, select "blog

      All done!

      Now go customize that home page.

      (make sure you are creating pages - not blog posts named "home" and "blog")
      Signature

      "May I have ten thousand marbles, please?"

      {{ DiscussionBoard.errors[9555062].message }}
      • Profile picture of the author MikeMiller
        Do this, if you want to use a custom homepage (highly recommended), but this won't actually do the trick for the /blog/ question.

        Go to Settings/Permalinks, select custom, and add this:

        /blog/%postname%/

        Originally Posted by Jill Carpenter View Post

        1. Create a page called "blog"
        2. Create another page called "home"
        3. Go to settings - reading - and look at the top - select the static page option
        4. Select "front page displays" and select "home"
        5. For posts page, select "blog

        All done!

        Now go customize that home page.

        (make sure you are creating pages - not blog posts named "home" and "blog")
        {{ DiscussionBoard.errors[9555540].message }}
  • Profile picture of the author SteveJohnson
    What Jill suggested will let you use an existing page that you've created as your 'home page', and 'blog' as the 'front page' for your blog posts. It will NOT change the URLs of your posts.

    The correct answer to your question depends on your answer to Mike Miller's question: do you want only blog posts (not pages) to have the '/blog/' prefix, or should every post/page in your WP installation have '/blog/' in front of it?

    If it is the latter, it is simple to do. Go to Settings > General and in the 'Site Address (URL)' box, add '/blog' to the end (no trailing slash), click the Save Changes button at the bottom. Then go to Settings > Permalinks and click the Save Changes button without making any changes. This will cause WordPress to rewrite its internal 'map'.

    If you want the first scenario - put '/blog/' in front of posts only, not pages, this is substantially more difficult, and can't be done within the WP dashboard. You're into plugin territory.
    Signature

    The 2nd Amendment, 1789 - The Original Homeland Security.

    Gun control means never having to say, "I missed you."

    {{ DiscussionBoard.errors[9555546].message }}
    • Profile picture of the author MikeMiller
      Steve, just try out what I wrote before you. If you manually add the /blog/ part to the URL structure in permalinks with this custom structure:
      /blog/%postname%/
      ,it will only affect blog posts, not pages, so it basically does exactly what the OP wanted. (Given that I understand the request right, as he didn't answer my question)

      I just tested this on a WP site, and worked.

      Originally Posted by SteveJohnson View Post

      What Jill suggested will let you use an existing page that you've created as your 'home page', and 'blog' as the 'front page' for your blog posts. It will NOT change the URLs of your posts.

      The correct answer to your question depends on your answer to Mike Miller's question: do you want only blog posts (not pages) to have the '/blog/' prefix, or should every post/page in your WP installation have '/blog/' in front of it?

      If it is the latter, it is simple to do. Go to Settings > General and in the 'Site Address (URL)' box, add '/blog' to the end (no trailing slash), click the Save Changes button at the bottom. Then go to Settings > Permalinks and click the Save Changes button without making any changes. This will cause WordPress to rewrite its internal 'map'.

      If you want the first scenario - put '/blog/' in front of posts only, not pages, this is substantially more difficult, and can't be done within the WP dashboard. You're into plugin territory.
      {{ DiscussionBoard.errors[9555814].message }}
  • Profile picture of the author JohnZ
    Set up a new category called "Blog" and post your content there. Every time you write a new post, pick this category from the list on the right. You can also change the permalink settings.
    Signature
    {{ DiscussionBoard.errors[9560813].message }}
    • Profile picture of the author MikeMiller
      This could actually work, but why would he want to always pick a category just for getting the desired URL, when he can achieve that by adding once /blog/ to the beginning of the permalink structure?

      Originally Posted by JohnZ View Post

      Set up a new category called "Blog" and post your content there. Every time you write a new post, pick this category from the list on the right. You can also change the permalink settings.
      {{ DiscussionBoard.errors[9560858].message }}
  • Profile picture of the author davidpham
    Do these steps

    - Login to admin
    - Menu Settings -> Permalinks
    - Check "Custom Structure" type this "/blog/%postname%/"

    Then you will see the magic .
    {{ DiscussionBoard.errors[9560882].message }}

Trending Topics