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

  1. gat
    Posted 11 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]
    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:
    if i click it, i'm redirected to:
    which, in fact, is the right page.. but has such an ugly look!!!
    is there a way to be redirected directly to:
    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
    Posted 11 years ago #

    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
    Posted 11 years ago #

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

  4. Ozh
    Posted 11 years ago #

    yes, .htaccess

  5. gat
    Posted 11 years ago #

    thanks very much, works great!

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.