531joshua Posted April 6, 2007 Report Share Posted April 6, 2007 Right, well I've got a site and the main page I want to be displayed as my home page is 'auction.cgi' however when I go to my domain it obviously doesn't show up as it isn't 'index.html/php/cgi'. As on this site, when you type in the domain 'www.trials-forum.co.uk' it automatically directs you to www.trials-forum.co.uk/forum.... this directs you to a folder, does anyone know how I could direct the domain to automatically open my auction.cgi page?Thanks,Josh. Quote Link to comment Share on other sites More sharing options...
Danny Posted April 6, 2007 Report Share Posted April 6, 2007 Simplest way is just to make an empty index.php file and bosh in it<?phpheader( 'Location: http://www.trials-forum.co.uk/forum/');?>[/code]But you can also do it with the .htaccess file. Quote Link to comment Share on other sites More sharing options...
531joshua Posted April 6, 2007 Author Report Share Posted April 6, 2007 Thanks Danny, I've managed using a meta tag now though:<meta http-equiv="Refresh" content="1;url=http://www.bike-trial.co.uk/auction.cgi">Thanks,Josh. Quote Link to comment Share on other sites More sharing options...
Danny Posted April 7, 2007 Report Share Posted April 7, 2007 I wouldn't recommend using that the way i said is better. Quote Link to comment Share on other sites More sharing options...
531joshua Posted April 7, 2007 Author Report Share Posted April 7, 2007 Oh right, 6 and two 3's really...?I'll give your way a go though.Thanks. Quote Link to comment Share on other sites More sharing options...
Danny Posted April 7, 2007 Report Share Posted April 7, 2007 Well your way waits a second then refreshes the browser where as the php just does it instantly. Quote Link to comment Share on other sites More sharing options...
531joshua Posted April 7, 2007 Author Report Share Posted April 7, 2007 Well your way waits a second then refreshes the browser where as the php just does it instantly.Yeah I noticed, I tryed the meta tag way without the '1;' bit, didn't work, changed to the php now: http://www.bike-trial.co.ukDo you know much about php? Just if you have got time I'm learning the basics and I was thinking about trying a CMS. Any help much appreciated.Thanks,Josh. Quote Link to comment Share on other sites More sharing options...
Danny Posted April 7, 2007 Report Share Posted April 7, 2007 I know a bit of php nothing too complex. I mainly work in Ruby On Rails now through my job. Grab me on msn if you ever get stuck. Quote Link to comment Share on other sites More sharing options...
531joshua Posted April 7, 2007 Author Report Share Posted April 7, 2007 Thanks Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.