The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

strange web address request

Discussion in 'General Discussion' started by HH-Steven, Jul 13, 2006.

  1. HH-Steven

    HH-Steven Well-Known Member

    Joined:
    Aug 29, 2004
    Messages:
    284
    Likes Received:
    0
    Trophy Points:
    16
    cPanel Access Level:
    Root Administrator
  2. webignition

    webignition Well-Known Member

    Joined:
    Jan 22, 2005
    Messages:
    1,880
    Likes Received:
    0
    Trophy Points:
    36
    I suppose you could try deleting the 'www' record from the zone file.
     
  3. HH-Steven

    HH-Steven Well-Known Member

    Joined:
    Aug 29, 2004
    Messages:
    284
    Likes Received:
    0
    Trophy Points:
    16
    cPanel Access Level:
    Root Administrator
    Thanks for the reply but that didnt work.

    Is there any other ways of doing this? maybe using mod_rewrite in .htaccess or similar?
     
  4. sparek-3

    sparek-3 Well-Known Member

    Joined:
    Aug 10, 2002
    Messages:
    1,383
    Likes Received:
    23
    Trophy Points:
    38
    cPanel Access Level:
    Root Administrator
    Try adding this to the VirtualHost section in the httpd.conf file (or I suppose the .htaccess file would work, never tried this in a .htaccess file though):

    RewriteEngine on
    RewriteCond %{HTTP_HOST} =www.domain.tld [NC]
    RewriteRule ^ http://domain.tld%{REQUEST_URI} [R,L]


    This should redirect traffic for www.domain.tld to just domain.tld
     
  5. madaboutlinux

    madaboutlinux Well-Known Member

    Joined:
    Jan 24, 2005
    Messages:
    1,052
    Likes Received:
    2
    Trophy Points:
    38
    Location:
    Earth
    Check whether there is 'ServerAlias' entry in the VirtualHost section in httpd.conf file. If present, remove the entry, restart httpd service and try.
     
Loading...

Share This Page