Phlow / feeling-responsive

»Feeling Responsive« is a free flexible theme for Jekyll built on Foundation framework. You can use it for your company site, as a portfolio or as a blog.
http://phlow.github.io/feeling-responsive/
MIT License
901 stars 1.34k forks source link

jekyll-redirect-from doesn't work #202

Closed bolaurent closed 4 years ago

bolaurent commented 4 years ago

I tried installing jekyll-redirect-from on my site derived from feeling-responsive. It doesn't work; it tries to redirect to an url whose value is the empty string ("").

I downloaded the unmodified template, added jekyll-redirect-from, and ran it locally. Same result.

Phlow commented 4 years ago

Hello @bolaurent – You dont need a plugin. There is a layout for that, which does the same:

https://github.com/Phlow/feeling-responsive/blob/gh-pages/_layouts/redirect.html

Best practice is to use a .htaccess-file instead. For example:

redirect 301 /file.html http://domain.de/new-file.html