• Resolved bloggingisforpeople

    (@bloggingisforpeople)


    I’m building a website for someone and he wants to have a regular site + a blog. More specifically he wants the regular site pages to be located at http://www.site.com/about/, http://www.site.com/faq/, and so on but the blog pages to all be located under http://www.site.com/blog with the neat permalink structure of /blog/cat1/page, /blog/archives/, and so on.

    The installation seems to only allow both regular pages and blog pages to appear at the root. So this way we can’t organize the blog pages under a /blog directory.

    I thought about doing a second installation of WordPress in a /blog/ directory but then how would the site owner manage the whole site in the same place?

    I’m looking at http://codex.wordpress.org/Create_A_Network as a possible solution but I’m not sure that is what I need.

    So what should I do? Thanks in advance for all support!

Viewing 7 replies - 1 through 7 (of 7 total)
  • couldn’t you add /blog/ into the permalink structure?

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    Wouldn’t that affect the pages, though?

    I have no idea…lol. That was an honest question! Just the first thing that popped into my head

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    *heh* It’s worth a shot! I just cannot remember what does and doesn’t affect page permalinks.

    I’d also make a page called ‘blog’ and use that as my ‘new posts page’. Combine it with a Static Front Page, it should be perfect.

    Thread Starter bloggingisforpeople

    (@bloggingisforpeople)

    What if I modified the .htaccess file to include ‘/blog/’ in the url whenever someone tries to reach a blog post? I would know this by the url if it contained the word ‘category’ or a yearly number like ‘2011’

    If this is possible to do using .htaccess I think it’s the solution. Is it possible?

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    Sure, that’s possible. I would try /blog/ in permalinks first, since that’s just easier. 🙂

    If that doesn’t work, you’d want….

    RewriteRule ^([0-9]{4})/([0-9]{2})/([0-9]{2})/(.*)$ http://domain.com/blog/$1 [L,R=301]
    RewriteRule ^category/(.*)$ http://domain.com/blog/$1 [L,R=301]
    RewriteRule ^tags/(.*)$ http://domain.com/blog/$1 [L,R=301]

    Untested but the logic is there 🙂

    Thread Starter bloggingisforpeople

    (@bloggingisforpeople)

    Got the link structure to work with the following schema:

    site.com/blog for blog main page
    site.com/blog/cat/post for individual posts
    site.com/blog/cat/ for listing of all posts in a category
    site.com/blog/20** for yearly archive
    site.com/blog/20**/** for monthly archive

    Did it by setting the permalink structure to /blog/%category%/%postname%/

    It didn’t affect the regular pages! I guess because of some older rewrite rules in the .htaccess file for them.

    Thanks Rev.Voodoo and Ipstenu!

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Running a regular site blog’ is closed to new replies.