• Hello guys,
    So, i have multiple domains that i need to redirect. I need to redirect www and non-www versions of .com.br, .net, .info, .org and .in to the www version of .com.

    So i asked Jeff (from Perishable Press) if he could help me. He gave me this .htaccess snippet:
    RewriteCond %{HTTP_HOST} ^(www\.)?openbuntu.com [NC,OR]
    RewriteCond %{HTTP_HOST} ^(www\.)?ubuntubrsc.(com|net|org|in|com.br|info) [NC]
    RewriteRule .* http://www.ubuntubrsc.com/ [R=301,L]

    Tryed it and it worked like a charm. But after one day, my images, fonts and files started to stop loading… so i got firebug and went to see what was going on. It seems that, when i use that, all my CDN files get a 301 redirect to my main domain o.o

    I use W3 Total Cache to serve my files from MaxCDN btw. Also a member of my team told me that he could not acess wp-admin… everytime he tryed, he would end up being redirected to the blog’s page.

    Then i deleted the code and everything went back to normal. But i needed my domains being redirected… SEO reasons. So i googled around and found this:

    RewriteEngine On
    RewriteCond %{HTTP_HOST} ^(www\.)?example.com [NC,OR]
    RewriteCond %{HTTP_HOST} ^(www\.)?example.info [NC,OR]
    RewriteCond %{HTTP_HOST} ^(www\.)?example.net [NC,OR]
    RewriteCond %{HTTP_HOST} ^www.example.org [NC]
    RewriteRule ^(.*)$ http://example.org/$1 [R=301,NC, L]

    Tryed it… was working great… but then it started to conflict with W3 Total Cache. Everytime i entered with one of my domains, it got redirected to my main domain, but with this in the url: /wp-content/pgcache/index_html.gzip

    Any idea about how i can fix those stuffs? I’m trying to do those redirects to avoid duplicated content… we are going live soon, but i can’t go live without this fixed :S

    Btw, i’m running with CloudLinux OS + LiteSpeed + OnApp + CloudFlare if that helps.
    Also, my htaccess struture is something like this:

    BulletProof Security codes (that include WP permlinks)
    W3 Total Cache
    5G Perishable Firewall
    Some IP blocks
    then here i put the redirects… but i tryed putting it at the top too, same results

    http://wordpress.org/extend/plugins/w3-total-cache/

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘W3 Total Cache Multiple Domains Redirect conflict?’ is closed to new replies.