Need htaccess redirect help
-
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
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
Eewww, doesn’t work either. Also tried to redirect here.
Thank you for the effort though.
The topic ‘Need htaccess redirect help’ is closed to new replies.