Best way to do redirection? (3 posts)

  1. rakickomcu
    Posted 3 years ago #

    Hi, i have a site that is up few yeas now, and i wanna change urls.
    site.net/category/"name of he category"
    That is our url struction for categories, and we now wanna change that. We can change but then will lose visitors that come to old structure urls.
    So, what is the best way to do redirection automaticly
    from any url that comes with /category, that now goes to /kategorija?
    Thanks in advance.

  2. pete_398
    Posted 3 years ago #

    From http://support.hostgator.com/articles/general-help/apache-mod_rewrite-and-examples

    # Rename a directory and force visitors to the new name
    # Replace 'old' with your old folder name
    # Replace 'new' with your new folder name
    RewriteEngine on
    RewriteRule ^/?old([a-z/.]*)$ /new$1 [R=301,L]
  3. Install WP
    Posted 3 years ago #

    You can setup regular expression /category --> 301 to --> /kategorijaon using the redirection plugin http://wordpress.org/extend/plugins/redirection/

Topic Closed

This topic has been closed to new replies.

About this Topic