Reply LinkBack Thread Tools Search this Thread
Old 16-05-2008, 19:43   #1 (permalink)
sovereing6
Registered User
 
Join Date: May 2008
Posts: 1
Setting homepage other than index page?

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

discoversecretsfor.com/runners.html[/url]

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
  Reply With Quote
Old 16-05-2008, 20:14   #2 (permalink)
KarateRobot
Registered User
 
KarateRobot's Avatar
 
Join Date: May 2008
Location: Seattle
Posts: 64
In your .htaccess file on the server, there should be a line that says:

DirectoryIndex

And then has a bunch of filenames like (for example) "index.html" or "home.html" or whatever. This is the list of files that the web server will try to display if no filename is given in the URL, in order. So, you'd want it to look like:

DirectoryIndex runners.html index.html index.htm ... (etc)

Hope that helps!
  Reply With Quote
Old 18-05-2008, 17:27   #3 (permalink)
Susanna-Cole
Wild Child
 
Susanna-Cole's Avatar
 
Join Date: May 2008
Location: On Earth
Posts: 58
As far as I know, you always have to make it index.html ... But interesting question!

KarateRobot I appreciate your help, though I'm not sure if I entirely understand what you're saying... are you saying you can make it something other than index.html or you can?
  Reply With Quote
Old 18-05-2008, 19:31   #4 (permalink)
haku
shiro
 
haku's Avatar
 
Join Date: Aug 2007
Location: Yokohama, Japan
Posts: 2,008
He is saying you can.

Add this your .htaccess in the directory you want to change:

Code:
DirectoryIndex runners.html index.html index.php

(which is what karaterobot was saying)
__________________
This space for rent.
  Reply With Quote
Old 18-05-2008, 20:16   #5 (permalink)
KarateRobot
Registered User
 
KarateRobot's Avatar
 
Join Date: May 2008
Location: Seattle
Posts: 64
Yeah, that's the ticket. Sorry for confusing you. What I was trying to say was that you find that line in your file, then add runners.html before whatever is already there.
  Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search


Contact Us - Web Design Forums - Archive - Top
Search Engine Optimization by vBSEO 3.0.0 RC8