Static Pages (v. 2.62 - 2.84e)
Resellers can set up stores with static page links in their catalogs, on supported servers. This means that the pages point to something like:
clientssite.com/item_5/Ballerina-Dress.htm
instead of:
clientssite.com/catalog.php?item=5
-
Check with your web host to make sure they allow MIME types. Most hosts do, but it's important to verify this with the web host.
-
In the config.php page (in the /sbconf/ folder), change the lines:
$Cat_Dir = ""; $Item_Dir = ""; $Article_Dir = "";
to:
$Cat_Dir = "category"; $Item_Dir = "item"; $Article_Dir = "article";
Note that you can change any of the above - the $Cat_Dir is the catalog directory that will show in the URL, the $Item_Dir is the item directory, the $Article_Dir is the article directory, and the $Static_Ext is the page extension that will show in static pages.
-
Use our .htaccess code guide to create the code to paste into your .htaccess file. Just enter your directory names and static page extension (from your config.php page), your catalog page (ie. catalog.php) and the subdirectory (if any) in which the system files are loaded. Click 'Create File' and the system will create the code you need to add to your .htaccess file.
-
Once your .htaccess file is modified, load the .htaccess file into the main public folder (or whatever folder your stconfig.php page is in) of your site.
-
Your site will now use static pages to navigate through the catalog (categories and items) and the articles.
-
To switch back to dynamic pages, open the config.php page in the /stconf/ folder, and change the lines:
$Cat_Dir = "category"; $Item_Dir = "item"; $Article_Dir = "article";
to:
$Cat_Dir = ""; $Item_Dir = ""; $Article_Dir = "";