1. This website uses cookies to improve service and provide a tailored user experience. By using this site, you agree to this use. See our Cookie Policy.
    Dismiss Notice

Disappearance www in the site url

Discussion in 'Black Hat SEO Tools' started by moustafa, Apr 21, 2009.

  1. moustafa

    moustafa Newbie

    Joined:
    Apr 15, 2009
    Messages:
    3
    Likes Received:
    0
    Disappearance www in the site url
    the solution to the www disappearance in your site url
    the lesson
    jooria.com/Disappearance-www-in-the-site-url-a136.html
     
  2. dumdumz

    dumdumz Registered Member

    Joined:
    Jan 5, 2009
    Messages:
    71
    Likes Received:
    13
    Many people dont have access to their httpd.conf being on shared hosting so here is how to force www with htaccess

    Code:
    RewriteEngine on
    RewriteCond %{HTTP_HOST} ^website.com [NC]
    RewriteRule ^(.*)$ http://www.website.com/$1 [R=301,L] 
    and to force non www you can use this

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