2014-05-19

I have a link to my site on a very popular but now dead website. The link is incorrect, so I'd like to redirect users to the correct page when they visit. I'm using Wordpress for my content.

The problems lie in the fact that the incorrect URL that the website lists is http://www.senntenial.com/#!mysterium/cj6d . From my research, I cannot do a 301 redirect in my htaccess, since this URL has a # sign, and is client only.

So, I tried creating the following script in my header.php file.

I would think this would have worked, but it doesn't. To identify the problem, I tried simply inputting window.location = 'http://www.senntenial.com/mysterium/'; Which worked correctly, meaning my problem lies in identifying the current window location.

How can I accomplish this? I assume Wordpress has a funky way of going about things with URL's to make them easier to read that may be messing with my code.

(PS, I tried WP extensions like EPS 301 redirect to no avail.)

Also, the mysterium page is static HTML, and not involved with Wordpress' CMS.

Show more