View Single Post
  #6  
Old 10-30-2009, 04:16 PM
  JWait's Avatar 
JWait JWait is offline
 

X-Man
  
Join Date: Nov 2005
Location: California
Posts: 2,440
 

Default Re: Static Content Inside Dynamic Pages

Piece of cake... x-cart has a default index.html. You might have seen it, its the one that says "enter store and has the x-cart logo. Anyway, create a index.html however you want (remember to put a link to home.php somewhere on it so people can find your store) and save it in the root directory (www.yoursite.com/index.html

Then you will notice in your x-cart files a file named .htaccess. open it in a text editor (something other than notepad or Word) and you will see the top line reads something like...

DirectoryIndex home.php index.php index.htm index.html

change it to

DirectoryIndex index.html index.htm home.php index.php

(leave the rest of the file alone)
and upload it to your site, making sure it is just .htaccess and not .htaccess.txt or anything like that.

What this file does is give directions to your site visitors telling the browser what page to look for first, second, third, etc. until it finds one. So we just changed it from home.php being first to index.html being first. Simple.
What this does
__________________
Two Separate X-Cart Stores
Version 4.4.4 Gold - X-AOM - Vivid Dreams Aquamarine (modified) - Linux
Mods - Newest Products - View All -, and a few others. Numerous upgrades from 4.0.x series.
Integrated with Stone Edge Order Manager + POS

Version 4.1.12 Gold (fresh install) - X-AOM - Linux
Mods - XCSEO free
Reply With Quote