JuliaLang / www_old.julialang.org

Julia Project web site (Old)
http://www_old.julialang.org/
Other
150 stars 276 forks source link

add redirect for utf8proc site #817

Closed stevengj closed 5 years ago

stevengj commented 5 years ago

This adds a redirect for julialang.org/utf8proc (fixes #809) using an htaccess file.

I have no idea how the julialang web server is configured. Does it support .htaccess redirects like this? @ararslan, do you know?

ararslan commented 5 years ago

I have literally no idea. @nkottary or @staticfloat, do either of you know?

ViralBShah commented 5 years ago

It is just a github pages site.

ViralBShah commented 5 years ago

https://help.github.com/articles/redirects-on-github-pages/

When a Jekyll post or page's title or date changes, existing links to the site may break. For the security
 of our users, GitHub Pages does not support customer server configuration files such as .htaccess or
 .conf. However, using the Jekyll Redirect From plugin, you can automatically redirect visitors to the
 updated URL.
staticfloat commented 5 years ago

Github pages sites do not support .htaccess. You have to use a jekyll thing: https://help.github.com/articles/redirects-on-github-pages/

staticfloat commented 5 years ago

Ack, Viral beat me to it. :P

staticfloat commented 5 years ago

It looks like that Jekyll thing is only to redirect to pages on your same domain though.

The easiest thing to do is probably to create a page a utf8proc, then have a meta redirect within that page. E.g. a <meta http-equiv="refresh" content="5;url=http://juliastrings.github.io/utf8proc/" /> somewhere in the <head> of the page.

stevengj commented 5 years ago

Updated to use HTML redirects.

stevengj commented 5 years ago

Something weird is happening — visiting julialang.org/utf8proc just refreshes over and over for some reason.

ViralBShah commented 5 years ago

Yeah I merged mainly to see how it would work out.

stevengj commented 5 years ago

There was a typo in the HTML, should be fixed now by 21cd215db684100d219739485b0c85719003100d