| Home | Register | FAQ | Members List | Search | Today's Posts | Mark Forums Read |
|
|
#1 (permalink) |
|
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 |
|
|
|
|
|
#2 (permalink) |
|
Registered User
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! |
|
|
|
#3 (permalink) |
|
Wild Child
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? |
|
|
|
#4 (permalink) |
|
shiro
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:
(which is what karaterobot was saying) This space for rent.
|
|
![]() |