Go Back  HTML Forums - Free Webmaster Forums and Help Forums > WEBSITE DEVELOPMENT > HTML / XHTML
User Name:
Password:
 

Reply
Thread Tools   Display Modes
  View First Unread
 
Old 07-31-2009, 06:27 AM
  #1
mhutter6
Novice (Level 1)
 
Join Date: Jul 2009
Posts: 1
iTrader: (0)
mhutter6 is an unknown quantity at this point
> Need to create new Home/Landing Page without renaming all index.htm links

I think there is a simple fix for this...but I can't think of it.

My client has an existing site (not very well designed and no templates) with hundreds of static pages. She wants me to create a new home (index.htm) page that is just a simple landing page where people can choose to enter her website OR visit the store to purchase products.

Simple enough...but, now all of the 100's of static pages have the link Home=index.htm on them. I want people to type in the URL: www.mysite.com (for example) and land on the new page to choose to go to the site to learn about her and her music OR go to the store to shop.

Once they are in the site, however, and hit the home link, I don't want them to go 'all the way back out' to the new landing page. I want them to go back to the 'old' index.htm page (or her current home page), without having to change the index.htm links on those 100's of pages.

Is there an easy fix for this, using a naming convention for the home page?

Any help would be greatly appreciated. I am a bit stumped on this one.
mhutter6 is offline   Add to del.icio.us Add to del.icio.us    Can you digg it?Can you digg it? Reply With Quote
Old 07-31-2009, 08:19 AM
  #2
batterj2
Soldier (Level 11)
 
batterj2's Avatar
 
Join Date: Jan 2005
Location: Sheffield
Posts: 132
iTrader: (0)
batterj2 is on a distinguished road
If your server is running Apache and you have access to the conf file you can add a new file called index.html, upload that and then edit the Apache conf file to accept index.html files before index.htm files.

Code:
#
# DirectoryIndex: sets the file that Apache will serve if a directory
# is requested.
#
<IfModule dir_module>
    DirectoryIndex index.html index.htm index.php
</IfModule>
__________________
James Battersby BSc. (Hons) Artificial Intelligence, www.jamesbattersby.com
Professional Member of the British Computer Society (2005 onwards), ISEB Foundation Certificate in Software Testing (2007)
XHTML, CSS, Javascript, PHP, MySQL, MSSQL, Oracle, Java (J2SE, J2EE (Struts, Spring)), C#, Jasc Paint Shop Pro, Adobe Photoshop, GIMP, Software Testing
batterj2 is offline   Add to del.icio.us Add to del.icio.us    Can you digg it?Can you digg it? Reply With Quote
Old 07-31-2009, 02:40 PM
  #3
Mandarin
Lord (Level 16)
 
Mandarin's Avatar
 
Join Date: Jul 2009
Posts: 550
iTrader: (0)
Mandarin is on a distinguished road
This is also why I never point my links directly at an index file. I just point them to the right website directory and let Apache serve up the default index page. My homepage links always look like:
HTML Code:
<a href="/">Home</a>
  - not -
<a href="/index.html">Home</a>
This creates cleaner-looking web addresses, allows the file structure to be manipulated more easily, allows for a future change in technology (like if your home page becomes index.php in the future), and saves a few bytes of bandwidth.
Mandarin is offline   Add to del.icio.us Add to del.icio.us    Can you digg it?Can you digg it? Reply With Quote

Reply
KEEP TABS
SPONSORS
 
Boxedart



 
 


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



 
  POSTING RULES
 
 
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Thread Tools
Display Modes

Forum Jump

 

All times are GMT -5. The time now is 09:26 AM.

   

Mascot team created by Drawshop.com

Powered by vBulletin® Version 3.6.7
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.

Server Monitoring by ENIACmonitor 0.01
HTMLforums.com © Big Resources, Inc. Web Design by BoxedArt.com
vRewrite 1.5 beta SEOed URLs completed by Tech Help Forum and Chalo Na.