[wp-hackers] Putting post into /blog/

Harish Narayanan harish.mlists at gmail.com
Sat Nov 28 17:36:47 UTC 2009


scribu wrote:
> On Sat, Nov 28, 2009 at 4:46 PM, Mike Schinkel
> <mikeschinkel at newclarity.net>wrote:
> 
>> Here's another URL related issue.  For the longest time I've wanted to move
>> everything blog related (i.e. not "Pages") including tags, categories, and
>> posts under the "/blog/" URL path.  Let me explain with hypothetical URLs:
>>
>> example.com/products/
>> example.com/support/
>> example.com/about/
>> example.com/contact/
>> example.com/blog/
>> example.com/blog/category/{category_slug}/<http://example.com/blog/category/%7Bcategory_slug%7D/>
>> example.com/blog/tag/{tag_slug}/<http://example.com/blog/tag/%7Btag_slug%7D/>
>> example.com/blog/{year}/{month}/{post_slug}/<http://example.com/blog/%7Byear%7D/%7Bmonth%7D/%7Bpost_slug%7D/>
>>
>> You'd think this would be easy but unfortunately it has been a very elusive
>> beast.
>>
> 
> I've encountered this problem before.
> 
> Something that kind of works is adding /blog/ in the post permalink
> structure, in the admin:
> 
> /blog/%year%/...

I don't see why this suggestion won't give you the URL structure you
want, assuming each example.com/foo/ is a WordPress page.

Harish


More information about the wp-hackers mailing list