WordPress.org

Ready to get started?Download WordPress

Forums

any easier/nicer way to redirect? (5 posts)

  1. gat
    Member
    Posted 10 years ago #

    i've just moved my blog to another host. the older one is a free home-made server which i used for years, and i wanted to leave to make space and do other things..
    the problem is that i'm deeply crawled by google and search engines, so that i would like to keep my about 200 daily accesses (baad guy :) )..
    the old address was http://gat.blogo.net -- the new one is http://www.gatblog.net
    well, i wrote some rewrite rules in my old (and desert) web server root, that look like:
    RewriteRule ^([0-9]{4})/?([0-9]{1,2})?/?([0-9]{1,2})?/?([0-9a-z-]+)?/?([0-9]+)?/?$ http://www.gatblog.net/index.php?year=$1&monthnum=$2&day=$3&name=$4&page=$5 [QSA]
    and
    RewriteRule ^(.*) http://www.gatblog.net/ [QSA]
    ..and so on, redirecting for /categories */trackback etc..
    now, if i search on google, for example, "gat blog lorna" i get this uri:
    http://gat.blogo.net/2003/10/15/lorna-di-papi-chulo-morta-un-qui-pro-quo/
    if i click it, i'm redirected to:
    http://www.gatblog.net/?year=2003&monthnum=10&day=15&name=lorna-di-papi-chulo-morta-un-qui-pro-quo&page=
    which, in fact, is the right page.. but has such an ugly look!!!
    is there a way to be redirected directly to:
    http://www.gatblog.net/2003/10/15/lorna-di-papi-chulo-morta-un-qui-pro-quo/
    ??
    and again, there are some wordpress specific rewrite rule (for example, to redirect EVERYTHING you could have in wordpress, like trackbacks, archives, feeds etc?) you can suggest me?
    thanks very much

  2. carthik
    Member
    Posted 10 years ago #

    put
    redirect 301 / http://www.gatblog.net/
    in the root directory of http://gat.blogo.net/
    and all references will be permanently redirected.
    I am assuming that you still have gat.blogo.net hosted somewhere...

  3. gat
    Member
    Posted 10 years ago #

    mmm where do i have to put it? into the .htaccess file? into an index.html file?
    sorry :(

  4. Ozh
    Member
    Posted 10 years ago #

    yes, .htaccess

  5. gat
    Member
    Posted 10 years ago #

    thanks very much, works great!

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.