Title: Rewrite issue
Last modified: September 18, 2018

---

# Rewrite issue

 *  [powerj](https://wordpress.org/support/users/powerj/)
 * (@powerj)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/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 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 7 years, 8 months ago by [Jan Dembowski](https://wordpress.org/support/users/jdembowski/).

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Moderator [Jose Castaneda](https://wordpress.org/support/users/jcastaneda/)
 * (@jcastaneda)
 * THEME COFFEE MONKEY
 * [7 years, 8 months ago](https://wordpress.org/support/topic/rewrite-issue/#post-10700667)
 * So, I had to re-search this because I had a similar issue like years back. A 
   friend asked me to help on her site and I made a cpt for something that I can’t
   fully remember. I found this link while searching again:
 * [https://wordpress.stackexchange.com/a/53305](https://wordpress.stackexchange.com/a/53305)
 *  Thread Starter [powerj](https://wordpress.org/support/users/powerj/)
 * (@powerj)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/rewrite-issue/#post-10701552)
 * Thanks Jose but I don’t’ think that’s it. It want the URL rewritten to be:
    [http://www.website.com/abc](http://www.website.com/abc)

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Rewrite issue’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 2 participants
 * Last reply from: [powerj](https://wordpress.org/support/users/powerj/)
 * Last activity: [7 years, 8 months ago](https://wordpress.org/support/topic/rewrite-issue/#post-10701552)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
