WordPress.org

Ready to get started?Download WordPress

Forums

Remove /tag/ from url (3 posts)

  1. Alex
    Member
    Posted 4 years ago #

    Greetings, I am implementing a wordpress installation for a client and want to remove /tag/ from url while keeping tag functionality. The website is http://www.montgomerysansome.com/
    tags look like montgomerysansome.com/tag/San-Francisco now, I would like them to look like montgomerysansome.com/San-Francisco without the /tag/

  2. Shane G.
    Member
    Posted 4 years ago #

    Hi,

    In order to remove the tag from URL, you need to add rewrite rule in htaccess of your blog. Here is the rewritre rule code:

    RewriteRule ^tag/(.+)$ http://www.yourblog.com/$1 [R=301,L]

    Thanks,

    Shane G.

  3. Alex
    Member
    Posted 4 years ago #

    This gives me 500 error, any way to do this without a htaccess

Topic Closed

This topic has been closed to new replies.

About this Topic