Need help? Check out our Support site, then


Need htaccess redirect help

  1. Greets:

    I hate dealing with htaccess files. :)

    I'm trying to redirect from my old wp site to my blog here. So far I've got:

    RewriteEngine on
    RewriteCond %{HTTP_HOST} ^tdjc.be$ [OR]
    RewriteCond %{HTTP_HOST} ^www.tdjc.be$
    RewriteRule ^(.*)$ http://drmikessteakdinner.com/$1 [R=301,L]

    The issues though are that I needs to forward the category pages which are in the format tdjc.be/category/ to drmikessteakdinner.com/tag/ I also need to redirect my former upload directory from tdjc.be/wp-content/uploads/ to avatars.tdjc.be/uploads/

    Hope someone can help,
    -drmike

  2. I hate dealing with htaccess files. :)

    I know, they're a pain...

    I haven't tested this, but it might help you:

    <IfModule mod_rewrite.c>
    ##the first part you have it worked out
    ...
    
    ## Dealing with Uploads
    RewriteCond %{HTTP_HOST}  ^(www\.)?tdjc.be/wp-content/uploads/$
    RewriteRule  ^(www\.)?tdjc.be/wp-content/uploads/$  http://avatars.tdjc.be/uploads/ [R=301,L]
    </IfModule>

    HTH

  3. Eewww, doesn't work either. Also tried to redirect here.

    Thank you for the effort though.

Topic Closed

This topic has been closed to new replies.

About this Topic