Jump to content

Setting homepage other than as index default?

Whether you're a seasoned veteran or a struggling beginner, Web Radiance is the web development and web design forum for you. You'll find answers to all your HTML, CSS, SEO, and Programming needs. Pull up a chair and stay awhile.

Page 1 of 1
  • You cannot start a new topic
  • This topic is locked

Setting homepage other than as index default? Rate Topic: -----

#1 User is offline   Ken 

  • W.R. Private
  • Group: Members
  • Posts: 1
  • Joined: 16-May 08

Posted 16 May 2008 - 06:48 PM

Hi

Is it possible to make an extension page to the domain as the default or homepage but not calling it
index or default, like

www.discoversecretsfor.com/runners.html

eg. runners.html ?


so when someone clicks on the domain page it will automatically open the runners page as the default homepage.

Thanks for any advice

Cheers
:notworthy:
0

#2 User is offline   marcamos 

  • W.R. General
  • Group: Administrators
  • Posts: 2,849
  • Joined: 04-April 06
  • Gender:Male
  • Location:Massachusetts - USA

Posted 16 May 2008 - 09:30 PM

Using an .htaccess file, assuming your site is hosted on a server running Apache (usually unix/linux, and not Microsoft), you can write a quick 301 redirect. Here's an example:
http://en.wikipedia.org/wiki/URL_redirecti...for_Redirection

If that's a bit too techy, then a meta-redirect, though hated by many, will work too:
http://en.wikipedia.org/wiki/URL_redirecti..._refresh_header
0

#3 User is offline   Karl Buckland 

  • A.K.A. Sirkent
  • Group: Administrators
  • Posts: 2,145
  • Joined: 04-April 06
  • Gender:Male
  • Location:Kent, UK

Posted 17 May 2008 - 08:59 AM

You don't need to use redirects, but you do need a .htaccess file. You can specify which files Apache should look for when serving up a directory, such as webradianc.com/ and webradiance.com/forum/, for example.

Simple use the DirectoryIndex parameter:
DirectoryIndex index.html runners.html

Notice I've specified two files. You can specify as many as you want and Apache will serve the first one it finds. So in this case, if there's just runners.html then that will be the index, but if index.html is in there too then that will display as the index instead.
QUOTE(benbramz @ Aug 17 2007, 07:44 AM) Ive noticed that quite a few people are now adding quotes from the board into their signature. I think its started an new web-radiance craze.. :P
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • This topic is locked

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users