301 redirect is working for www.example.com but not for ....

Events happening in the community are now at Drupal community events on www.drupal.org.
Posted by pmarreddy on October 21, 2009 at 8:48pm

I am getting a strange problem with 301 redirect it the code is working for with www in the link and not working for with out www

RewriteBase /
RewriteRule ^api$ http://example.com/topic/api [R=301,L]

if i type http://www.example.com/api it works but if i do http://example.com/api it doesnt work \

Adv thanks
prasanth
http://learna2z.com

Categories: ,

Comments

check the dns

Posted by eaochoac on February 10, 2010 at 7:53pm

Check your dns settings maybe one a record (with www) is pointing to A and the other to B

Search Engine Optimization (SEO)

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds:

AltStyle によって変換されたページ (->オリジナル) /