Dedicated Ip for .htaccess?

Discussion in 'Site & Server Administration' started by sumitt_2004, Jan 31, 2008.

  1. #1
    Hi, I just want to know is it compulsory to take dedicated ip to run .htaccess file for 301 redirection? OR it works on shared IP as well?
     
    sumitt_2004, Jan 31, 2008 IP
  2. LittleJonSupportSite

    LittleJonSupportSite Peon

    Messages:
    386
    Likes Received:
    20
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Dedicated IP?

    .htaccess can redirect anywhere you want. Can bounce to someserver.com or 1.2.3.4

    What is the real question here?

    If your looking to use a 301 redirect to specific site on shared host then you will 100% want to redirect by domain name and not the default IP address of the server.

    If you redirect to the main IP of a shared host you will undoubtedly get undesired results.
     
    LittleJonSupportSite, Jan 31, 2008 IP
  3. sumitt_2004

    sumitt_2004 Peon

    Messages:
    154
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Thanks for your response. The actual question is when, I put 301 redirection code in my .htaccess file (non www to www and index.html to /) then my site shows 500 internal server error as, I delete that code from .htaccess it begins to run. I want to know the solution of this problem.
     
    sumitt_2004, Feb 1, 2008 IP
  4. blowingideas

    blowingideas Peon

    Messages:
    642
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #4
    it works on shared hosting. the error 500 simply means that there's something wrong with your .htaccess file.

    try this if you want a 301 redirect.

    save it as .htaccess file in your webspace.
     
    blowingideas, Feb 1, 2008 IP
  5. dnk

    dnk Well-Known Member

    Messages:
    1,576
    Likes Received:
    23
    Best Answers:
    0
    Trophy Points:
    143
    #5
    It usually works with shared IP, check with your host if you have a problem
     
    dnk, Feb 1, 2008 IP
  6. sumitt_2004

    sumitt_2004 Peon

    Messages:
    154
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Please send the url again. I think it has broken.
     
    sumitt_2004, Feb 1, 2008 IP
  7. blowingideas

    blowingideas Peon

    Messages:
    642
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #7
    blowingideas, Feb 2, 2008 IP