DEV Community

Discussion on: Setup a redirect on Github Pages

Collapse
 
ginigangadharan profile image
Gineesh Madapparambath

Cool ! Thanks for Sharing.

Btw, any idea how to achieve parameter/url passing as well ?

Expection :
mypage on old github should point to mypage on newsite.com
olduser.github.io/mypage --> newsite.com/mypage

thanks

Collapse
 
trusktr profile image
Joe Pea

You can use JavaScript instead of <meta>, then set window.location = to whatever you want (including paths, query strings, hashes, etc)