I've got a jekyll install that I'm trying to upload online. It works locally, but when visiting the site, it appears broken.
Here's what I've got in my _config.yml:
baseurl: "" # the subpath of your site, e.g. /blog
url: "http://vitaliyg.com" # the base hostname & protocol for your site
I can't help but think it's something wrong here.
The console isn't pulling up any errors, but my css is missing as well as the template elements like the footer.
Any ideas?
Related
Hello after installing a ssl on my site the image slider has stopped working.
The site isnt woedpress its just a php site thats quite old.
I installed the ssl through namecheaps cpannel & turned the redirect http to https on.
https://www.compare-travel-deals.com/ - my site
http://www.travelsite2.epizy.com/ - how it shold look
I've gone through changing any links i find to http: to https:
Viewing the source i thort it was somthing to do with this line "" but can work out where the link is to change http to https.
Hopefully someone knows.
Nevermind i scanned through the index.php and found the link to the http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js file and changed it to https. And it works now, thanks anyway.
I have also came across similar issue on my website's home page.
When I accessed my website from http to https(means after addition SSL) my image slider stopped working.
I tried below workaround:-
replaced all http links on my home page with https.
I assume in this case all http link should have respective https links available.
After that my image slider started working same like earlier it's working with http.
I have built a website and have until now hosted it on github pages:
https://ge00rg.github.io/website/
Here is the link to the repo in case you want to take a look at the files:
https://github.com/ge00rg/website
Now I want to move it to heroku. The site does deploy, but does not get displayed correctly, as you can see here:
https://hidden-escarpment-98567.herokuapp.com/
It seems like the assets and CSS are somehow not linked correctly, but I can't figure out why.
EDIT: Never mind, found the error. I just needed to configure the _config.yml differently and set
baseurl: ""
url: "https://hidden-escarpment-98567.herokuapp.com"
I solved the problem by adjusting the following in _config.yml:
baseurl: ""
url: "https://hidden-escarpment-98567.herokuapp.com"
so that Jekyll would be able to find main.css and all the assets.
I have a Jekyll site deployed to Heroku. I have created a custom 404 error page in source/404.html file. The page can be found at mydomain.com/404/. But when I try to go to pages which don't exist, the custom 404 page doesn't work. And instead I get a blank, default Heroku error page.
What can be a reason for that? Note that a permalink for the page doesn't have an html extension. Can this be a problem?
Have you tried adding a permalink to the YAML front matter?
permalink: /404.html
also I have read that the 404 page is specific to GitHub pages, but worth a try
If you have followed the Heroku official Jekyll setup, you should use 2 buildpacks :
heroku/ruby
https://github.com/heroku/heroku-buildpack-static
The latter allow a static.json configuration file (at the root of your project) to customize nginx. The documentation tells you how to add custom error pages.
In your case, the static.json file should contain :
{
...
"error_page": "404.html",
...
}
I am using laravel forge and it's awesome. However i ran into one problem.
I created a server on digital ocean and referred my domains to that ip. Everything good and well so far.
Than i created a site. Used the deployer and yup everything worked like a charm, however now i added a second site to the server. and well yes it added the site. so /home/forge/website2.com. However now when going to my previous site: website1.com it shows me website2.com.. i rebooted the server, reloaded nginx nothing seems to work als in sites_available the paths look good.
Any idea's?
Are site 1 and site 2 on different domains, or are they just different sub domains?
Have you tried comparing the Nginx configuration (you can get to it from the Forge site) between the two websites?
To me it seems that your Nginx configuration is wrong. Lastly, are either of them stored on the "default" site on forge or did you qualify a url and keep "default" empty?
This issue has been resolved by taylor, He updated forge and this isn't a problem anymore.
When I upload the CodeIgniter package to my web server on Bluehost, I can get into the main page, but not sure if this is all I have to do.
I've read many questions here about the same issue, but nothing worked for me. As I understand that I have to add some code .htaccess codeignitor code to the root .htaccess, but that made a mess in my url redirection.
I verified that mod_rewrite is working fine through some php code, but still unsure about the installation procedure. did any have this framework works on his Bluehost webserver??
I found the installation guide on this site, but the test fails back to 404 page.
By the way, I uploaded the package on a subdomain folder
Any comments are appreciated.
That's nothing wrong with Bluehost.. I've upload my CI into a subdomain folder in Bluehost. and nothing wrong.. It work perfectly..
Some questions :
Do you set your base_url correctly? or you can leave it blank.
Are you sure you've write the right .htaccess, and put it in the right place? make sure the index page in the config file is blank.