Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 5 of 5
  1. #1
    Member
    Join Date
    Aug 2004
    Posts
    294
    cPanel/Enkompass Access Level

    Root Administrator

    Default strange web address request

    Ok, now this is going to sound very very weird but please bear with me.

    I have one client who only wants his site accessible via http://domain.tld

    he wants other methods such as:

    http://www.domain.tld

    &

    www.domain.tld

    to show error pages and hes used:

    http://forums.seochat.com/

    http://www.forums.seochat.com/

    www.forums.seochat.com/

    as examples, notice how only the first link works?

    Certainly weird i know but any suggestions are more than welcome.

    Cheers

  2. #2
    Member
    Join Date
    Jan 2005
    Posts
    1,880

    Default

    I suppose you could try deleting the 'www' record from the zone file.

  3. #3
    Member
    Join Date
    Aug 2004
    Posts
    294
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Quote Originally Posted by webignition
    I suppose you could try deleting the 'www' record from the zone file.
    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. #4
    Member
    Join Date
    Aug 2002
    Posts
    1,120

    Default

    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. #5
    Member
    Join Date
    Jan 2005
    Location
    Earth
    Posts
    1,050

    Default

    Quote Originally Posted by fs-uk
    Ok, now this is going to sound very very weird but please bear with me.

    I have one client who only wants his site accessible via http://domain.tld
    he wants other methods such as:

    http://www.domain.tld
    &
    www.domain.tld
    to show error pages and hes used:
    Cheers
    Check whether there is 'ServerAlias' entry in the VirtualHost section in httpd.conf file. If present, remove the entry, restart httpd service and try.

Similar Threads & Tags
Similar threads

  1. Feature Request: Email Address List Improvments
    By doni49 in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 04-21-2011, 04:30 PM
  2. apache - strange request
    By drhost in forum cPanel and WHM Discussions
    Replies: 5
    Last Post: 07-14-2009, 07:14 AM
  3. Strange problem with (web)mail
    By SiMka in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 04-26-2005, 08:09 PM
  4. Bug or Feature Request : Web Stats
    By TRPN2 in forum Archived Feature Requests
    Replies: 4
    Last Post: 02-16-2002, 08:23 PM
  5. Bug or Feature Request : Web Stats
    By TRPN2 in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 02-16-2002, 08:23 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube