Reputation: 3352
Hi i'm trying to deploy jekyll to a subdirectory 2 levels deep on my server, /dev/more
Tried following this link, but all my css links and hyperlinks keeps referring to my root folder public_html
instead of the /dev/more
folder.
I'm trying to deploy jekyll's stock blog out of the box. uploaded the _site
folder to the /dev/more
folder on my server
I can fix my css and js calls by using
<link href="./css/syntax.css">
instead of
<link href="/css/syntax.css">
but not the generated jekyll links to my posts.
I'm guessing i either have to do something on my _config.yml or on my .htaccess, so far i've had no luck.
This issue has been asked here on stackoverflow without any answers
Upvotes: 0
Views: 351
Reputation: 511
When you have this (absolute) path:
/foo/index.html
You're saying, "Take me to the file index.html
in the directory foo
found in the root directory", aka the folder where Apache/Ngios/Python/PHP/whatever is serving the content from.
This relative path:
foo/index.html
Is saying, "Take me to the file index.html
in the directory foo
found in the directory I'm currently in."
Upvotes: 1