• 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 be www.website.com/landingpages/abc and www.website.com/category/abc

    Assuming I can’t have www.website.com/abc then I would like the url website.com/landingpages/abc to redirect to website.com/landingpages/abc which I can do per individual post with the Redirection plugin – but can I do it through functions.php?

    TIA

    • This topic was modified 6 years, 6 months ago by Jan Dembowski.
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.