URGENT need someone to fix a site

Discussion in 'Web Hosting' started by nobodyok, Mar 3, 2011.

  1. #1
    It could be a dns issue or mod_rewrite issue. The problem is domain.com works, but www.domain.com doesn't work. Here's my .htaccess
    willing to pay of course. $15 who can help me. Either reply here or pm for more info. I could just try using domain.com, but need the www for cookies reasons.

    
    RewriteEngine On
    RewriteCond %{HTTP_HOST} ^domain\.com
    RewriteRule (.*) http://www.domain.com/$1 [R=301,L]
    
    RewriteCond %{HTTP_USER_AGENT} "AISearchBot" [NC,OR]
    RewriteCond %{HTTP_USER_AGENT} "woriobot" [NC,OR]
    RewriteCond %{HTTP_USER_AGENT} "heritrix" [NC,OR]
    RewriteCond %{HTTP_USER_AGENT} "NetSeer" [NC,OR]
    RewriteCond %{HTTP_USER_AGENT} "Nutch" [NC]
    RewriteRule ^(.*)$ - [F]
    
    RewriteRule ^((urllist|sitemap_).*\.(xml|txt)(\.gz)?)$ vbseo_sitemap/vbseo_getsitemap.php?sitemap=$1 [L]
    
    RewriteCond %{REQUEST_URI} !(admincp/|modcp/|cron|vbseo_sitemap)
    RewriteRule ^((archive/)?(.*\.php(/.*)?))$ vbseo.php [L,QSA]
    
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !/(admincp|modcp|clientscript|cpstyles|images)/
    RewriteRule ^(.+)$ vbseo.php [L,QSA]
    Code (markup):

     
    nobodyok, Mar 3, 2011 IP
  2. pushtius1

    pushtius1 Peon

    Messages:
    3
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #2
    try this:

    <IfModule mod_rewrite.c>
    Rewritecond %{http_host} ^domain.com [nc]
    RewriteRule ^(.*)$ http://www.domain.com/$1 [r=301,nc]
    </IfModule>
     
    pushtius1, Mar 3, 2011 IP
  3. nobodyok

    nobodyok Greenhorn

    Messages:
    80
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    20
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #3
    I found some things that could help. If I remove:
    RewriteCond %{HTTP_HOST} ^domain\.com
    RewriteRule (.*) http://www.domain.com/$1 [R=301,L]

    Then domain.com works
    but www.domain.com still doesn't work.

    So I don't think it's that rule.
     
    nobodyok, Mar 3, 2011 IP
  4. builtSEO

    builtSEO Well-Known Member

    Messages:
    289
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    111
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #4
    This should work !!

    RewriteRule ^(.*) http://www.domain.com/$1 [L,R]
     
    builtSEO, Mar 4, 2011 IP
  5. nobodyok

    nobodyok Greenhorn

    Messages:
    80
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    20
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #5
    Sorry. This has been fixed already.
     
    nobodyok, Mar 4, 2011 IP
  6. builtSEO

    builtSEO Well-Known Member

    Messages:
    289
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    111
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #6
    oops.... then $15 buddy?! :p
     
    builtSEO, Mar 4, 2011 IP