Comment

Comment by jc4p

@edent - what web server are you using? I wouldn't bother with any Wordpress plugins, but if you're using Apache or something you should be able to `mod_rewrite` pages ending in `/amp` to the same page minus the `/amp`, which _should_ work right? Hopefully then Google will notice the 301s and catch up.

Posting this here because in the comments on the blog post he asked for any code that might help with that, I think something like:

`RewriteRule (.+)/amp/$ $1`

might work

parent jc4p 10 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton