Exclude single page from permalink rule

I have a page /video which has a javascript app running on it. The javascript reads the url fragments and loads a video. ie /video/my-first will load the video titled My First.

My issue here is with the permalinks. WordPress identifies the multi fragment url and tries to find a match. I have configured an add_rewrite_rule to skip anything with ^video which works fine for the site.

My issue is Google appears to pick up on the redirect here and will not fetch the rendered page. It lists it as a 301, permanently redirected.

Googlebot type: Desktop (render requested)
Redirected on Tuesday, April 10, 2018 at 4:01:40 AM PDT

I am not a WordPress developer (I wrote the javascript app), so I was hoping there would be a way to exclude the Video page from the permalinks. Currently it is a WordPress page entity, but I have no issue using a single php page in the theme and linking directly to it via a menu.

Read more here:: Exclude single page from permalink rule

Leave a Reply

Your email address will not be published. Required fields are marked *