Remove from URL with mod rewrite (3 posts)

  1. granulr
    Posted 6 years ago #

    how can I remove an element in the url.

    I have /directory/california

    and want to remove /directory so it's just /california

  2. James Huff
    Support Representative
    Posted 6 years ago #

    Why not rename /directory/ to /california/ and move WordPress to it?

  3. granulr
    Posted 6 years ago #

    I'm sorry I didn't explain well enough on this thread... Directory is a custom post type and these always display the post type in the url...

    So the url looks like this /directory/california

    And I need it to be /california...

    So i'm looking for a way to remove the post type from the url

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.