URL incorrect in Octopress on subdomain

2

1

I followed the instructions to the best of my ability, as layed on on the Octopress website, but for whatever reason, things aren't correct.

When I followed the instructions, I expect my URLs to look something like this: http://domain.com/blog/POST

Instead (aside from the root page), they look like this: http://domain.com/blog/blog/POST

What mistake did I make?

I did the following:

rake set_root_dir[/blog]
vim _config.yml #url: http://domain.com/blog
vim Rakefile #document_root = "~/domain.com/blog"

Thanks!

Note: I would have created an octopress tag, but lack sufficient reputation

NT3RP

Posted 2012-06-02T18:34:37.360

Reputation: 425

Answers

1

To place the posts under /blog/date...

in _config.yml

I changed

permalink: /blog/:year/:month/:day/:title/

to

permalink: /:year/:month/:day/:title/

This change was in addition to the instructions from http://octopress.org/docs/deploying/subdir/

That worked for the blog posts themselves, but the archives page stills show up as /blog/blog/archives

You can probably search the source for "archives" to see how that's generated if you want to fix the archives page itself and the pages that link to it. Octopress is a blogging engine for hackers after all ;)

Jeff

Posted 2012-06-02T18:34:37.360

Reputation: 26