Bigblast
Senior Member
- Mar 16, 2018
- 1,174
- 206
Hey Guys,
I am using a static site and for my old pages (old urls) I put this code in the header to redirect them to a new url:
<meta http-equiv="refresh" content="0; url=/new-url"> <link rel="canonical" href="/new-url" />
That was 2 month ago, what I realised today is, that google is still not indexing the new url structure. What I realised as well is, these two tags aren't really a 301 redirect, aren't they?
Since I am not using WordPress but a static site, does someone know how the code look like for the 301 redirect?
Do I need to write the code in the htaccess file or can I put it in the header as html?
What else could be the reason that google didn't index the new url structure?
Thanks
I am using a static site and for my old pages (old urls) I put this code in the header to redirect them to a new url:
<meta http-equiv="refresh" content="0; url=/new-url"> <link rel="canonical" href="/new-url" />
That was 2 month ago, what I realised today is, that google is still not indexing the new url structure. What I realised as well is, these two tags aren't really a 301 redirect, aren't they?
Since I am not using WordPress but a static site, does someone know how the code look like for the 301 redirect?
Do I need to write the code in the htaccess file or can I put it in the header as html?
What else could be the reason that google didn't index the new url structure?
Thanks