301 Permenant Redirect

alezla

Newbie
Oct 8, 2008
10
1
I find it funny that when setting up new wordpress blogs, it automatically sets the address of the website as a no-www domain, however i am having problems changing some of my domains from no-www domains to www domains. Any suggestions? How can I do it after my sites are live? Also can I do this through cpanel, I have tried this code in the htaccess file

RewriteEngine On
RewriteCond %{HTTP_HOST} ^yourdomain.com$ [NC]
RewriteRule ^(.*)$ http://www.yourdomain.com/$1 [R=301,L]

but nothing seems to happen. I am already starting to notice search engines thinking my addresses are two different domains. I even have a different number of backlinks for each variation of the domains? Help anyone? Thanks in advance.
 
cpanel has redirect options...that's how i do my 301's. It's kind of tricky with wp blogs cause they will cause redirect loops sometimes. If it's already live i'd just leave it without.
 
Back
Top
AdBlock Detected

We get it, advertisements are annoying!

Sure, ad-blocking software does a great job at blocking ads, but it also blocks useful features and essential functions on BlackHatWorld and other forums. These functions are unrelated to ads, such as internal links and images. For the best site experience please disable your AdBlocker.

I've Disabled AdBlock