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.

redirect IP to folder

Discussion in 'General Discussion' started by charleyhankins, Aug 18, 2009.

  1. charleyhankins

    Joined:
    Apr 21, 2009
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    Hi! My website sits at: "http://208.109.220.101/~sacc/"

    I need to be able to type in just the IP address and be directed to the folder.

    ex.
    "http://208.109.220.101/"

    would redirect to

    "http://208.109.220.101/~sacc/"

    How may I go about accomplishing this?

    My webhost will offer no assistance for this.
    Thanks,
    CH
     
  2. thewebhosting

    thewebhosting Well-Known Member

    Joined:
    May 9, 2008
    Messages:
    1,201
    Likes Received:
    1
    Trophy Points:
    38
    I am not sure whether it is possible. However, you can try to write the rewrite rule on your .htaccess file and have a try.
     
  3. charleyhankins

    Joined:
    Apr 21, 2009
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    I'm sorry. How do I go about doing that?
    Thanks,
    CH
     
  4. InstaCarma_Tech

    InstaCarma_Tech Well-Known Member

    Joined:
    Apr 22, 2009
    Messages:
    228
    Likes Received:
    1
    Trophy Points:
    18
    Most probably you are on a shared IP. Your host might have many people on the same IP. If that is the case then it will pick up the first entry corresponding to this IP from the Apache config file.
    To cut the long story short, you need to have a dedicated IP in order to achieve this :-/
     
  5. charleyhankins

    Joined:
    Apr 21, 2009
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    I am on a virtual server with godaddy.com. They say my IP is only on my server.

    Would I make a change in the VirtualHost settings in httpd.conf?

    Thanks,
    CH
     
  6. cpanelinfoseeker

    cpanelinfoseeker Well-Known Member

    Joined:
    Oct 25, 2002
    Messages:
    325
    Likes Received:
    3
    Trophy Points:
    18
    Location:
    NE Illinois
    cPanel Access Level:
    Root Administrator
    The quickest way to check if you have a dedicated IP address is to log in to your cPanel and look in the left column (near the bottom) for "Dedicated Ip Address" which will have your actual IP address listed. If it is a dedicated IP address, it should (at least on my server) show the website using the IP address only.

    If the left column has "Shared Ip Address" instead of the "Dedicated Ip Address" caption, then that is why the "~sacc/" is needed as multiple sites may share the address.

    Ron
     
    #6 cpanelinfoseeker, Aug 19, 2009
    Last edited: Aug 19, 2009
  7. persianwhois

    persianwhois Well-Known Member

    Joined:
    Apr 18, 2007
    Messages:
    117
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Mahallat
    cPanel Access Level:
    Root Administrator
    You can do it with edit "httpd.conf" too.
     
Loading...

Share This Page