Rewrite issue
-
I have a cpt called landingpages
eg.www.website.com/landingpages/abc
I was trying to rewrite the url for landingpages so there was no slug but I couldn’t get that to work
eg.www.website.com/abc
I was just getting 404s maybe due to a conflict with a taxonomy with terms of the same name
eg. there will bewww.website.com/landingpages/abc
andwww.website.com/category/abc
Assuming I can’t have
www.website.com/abc
then I would like the urlwebsite.com/landingpages/abc
to redirect towebsite.com/landingpages/abc
which I can do per individual post with the Redirection plugin – but can I do it through functions.php?TIA
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Rewrite issue’ is closed to new replies.