WordPress.org

Ready to get started?Download WordPress

Forums

Remove from URL with mod rewrite (3 posts)

  1. granulr
    Member
    Posted 3 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
    Happiness Engineer
    Posted 3 years ago #

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

  3. granulr
    Member
    Posted 3 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

Tags

No tags yet.