Redirect WWW to non WWW, for primary domain, and parked doma

  • basketmen
  • Student
  • Student
  • basketmen
  • Posts: 68

Post 3+ Months Ago

Hi guys,

I already know basic Redirect www to non-www, using htaccess:

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







but how if we have parked domain too?

I already tried this but its not works, its says "The page isn't redirecting properly"

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






please share your knowledge, what is the best way for this?
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

Post Information

  • Total Posts in this topic: 1 post
  • Users browsing this forum: No registered users and 120 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.