Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie

quick question about hosting

Options
  • 21-03-2005 8:14pm
    #1
    Banned (with Prison Access) Posts: 8,486 ✭✭✭


    right fairly straightforward one really a domain was registered www.jaded-sun.com last year which expired on the 28th of Jan 2005 im switching hosts and have registered the domain again. question is how long does it take for it to point to the new hosting company cos its still pointing at the old one on Blacknight.ie

    while i'm at it anyone know the code to get a page to automatically re-direct to an alternative URL?


Comments

  • Registered Users Posts: 683 ✭✭✭Gosh


    _raptor_ wrote:
    while i'm at it anyone know the code to get a page to automatically re-direct to an alternative URL?

    <meta HTTP-EQUIV="REFRESH" content="0; url=http://www.yourdomain.com/index.html"&gt;

    The META tag redirect code will redirect your visitors to another web page instantly. The content="0; may be changed to the number of seconds you want the browser to wait before redirecting.


  • Banned (with Prison Access) Posts: 8,486 ✭✭✭miju


    nice one gosh your a bleeding star you are


  • Registered Users Posts: 4,003 ✭✭✭rsynnott


    _raptor_ wrote:
    right fairly straightforward one really a domain was registered www.jaded-sun.com last year which expired on the 28th of Jan 2005 im switching hosts and have registered the domain again. question is how long does it take for it to point to the new hosting company cos its still pointing at the old one on Blacknight.ie

    while i'm at it anyone know the code to get a page to automatically re-direct to an alternative URL?

    Ideally, if you're on Apache, instead of doing the META REDIRECT thing, you should make a .htaccess file containing something like:
    Redirect permanent / http://www.newsite.com/

    The advantage of that is that all pages on the site will redirect to the new one, and that Google will realise you've moved, and update itself accordingly (so that you don't have a pagerank split, etc.)


  • Banned (with Prison Access) Posts: 8,486 ✭✭✭miju


    is that all that has to go into the .htaccess file?


  • Registered Users Posts: 4,003 ✭✭✭rsynnott


    _raptor_ wrote:
    is that all that has to go into the .htaccess file?

    Yep. Now what that'll do is, if you have say http://oldsite.com/test.html, it'll go to http://newsite.com/test.html. If you just want to redirect specific URLs, then do something like
    Redirect permanent /thing.html http://www.newsite.com/thing.html


  • Advertisement
  • Registered Users Posts: 21,257 ✭✭✭✭Eoin


    Make sure you set the permissions on the .htaccess file correctly so everyone has read access to the file, but can't view the contents:

    Put these lines at the top of the file
    <Files .htaccess>
    order allow,deny
    deny from all
    </Files>
    

    I think the permissions should be 644?


  • Registered Users Posts: 4,003 ✭✭✭rsynnott


    eoin_s wrote:
    Make sure you set the permissions on the .htaccess file correctly so everyone has read access to the file, but can't view the contents:

    Put these lines at the top of the file
    <Files .htaccess>
    order allow,deny
    deny from all
    </Files>
    

    I think the permissions should be 644?

    As far as I know, modern versions of Apache NEVER let the client see .htaccess.


  • Registered Users Posts: 21,257 ✭✭✭✭Eoin


    rsynnott wrote:
    As far as I know, modern versions of Apache NEVER let the client see .htaccess.

    rsynnott, You are probably dead right - don't know what version we are running in work, but if the file was not readable then the site was unavailable and if it was readable then you could view the contents of the file. I wouldn't be surprised if we are running an older version.


  • Closed Accounts Posts: 2,161 ✭✭✭steve-hosting36


    To answer your other question, domain re-propagation usually doesnt take more than a few hours these days.


  • Banned (with Prison Access) Posts: 8,486 ✭✭✭miju


    *if you have a problem with your hosting company, tell them, not us*


  • Advertisement
  • Registered Users Posts: 7,739 ✭✭✭mneylon


    If you are having issues with a domain registered through us please contact accounts@blacknight.ie


  • Closed Accounts Posts: 4,655 ✭✭✭Ph3n0m


    communication is a wonderful thing, thread closed


This discussion has been closed.
Advertisement