I'm trying to redirect http://terrychew.com.sg/classes to http://terrychew.com.sg/math-olympiad-singapore#Primary because without the #Primary, the tab I want users to see will not be selected.
.htaccess converts my # into %23 which doesn't work for me. I read on another thread that this code can be used to redirect with hashtags in the url
if (window.location.hash == "#/de/about/blog/") {
window.location = 'http://google.com.ua';
}
however, in this case, the OLD url contains the hashtag. I need code that works when the NEW url contains the hashtag. I tried reversing the code but it does not work