I have installed oscmax in root directory. What is the easiest way to move it to /Catalog?
Can I just simply create a folder and move all the files into it?
Reason behind is that I want www.domain.com to be a cover page.
This is a discussion on Catalog folder within the osCmax v2 Customization/Mods forums, part of the osCmax v2.0 Forums category; I have installed oscmax in root directory. What is the easiest way to move it to /Catalog? Can I just ...
I have installed oscmax in root directory. What is the easiest way to move it to /Catalog?
Can I just simply create a folder and move all the files into it?
Reason behind is that I want www.domain.com to be a cover page.
Forgive, as I am a bit brain dead of too many issues...
But I am pretty sure create a sub dir (move all files to it) += CHANGE configure.php
Modify to the bold...
// Define the webserver and path parameters
// * DIR_FS_* = Filesystem directories (local/physical)
// * DIR_WS_* = Webserver directories (virtual/URL)
define('HTTP_SERVER', 'http://yourdomain.com');
define('HTTP_CATALOG_SERVER', 'http://yourdomain.com');
define('HTTPS_CATALOG_SERVER', 'http://yourdomain.com');
define('ENABLE_SSL_CATALOG', 'false');
define('DIR_FS_DOCUMENT_ROOT', '/home/AcctName/public_html/cart/');
define('DIR_WS_ADMIN', '/cart/admin/');
define('DIR_FS_ADMIN', '/home/AcctName/public_html/cart/admin/');
define('DIR_WS_CATALOG', '/cart/');
define('DIR_FS_CATALOG', '/home/AcctName/public_html/cart/');
Yes, you can simply create the catalog folder and move everything to it but you also have to make sure your catalog/includes/configure.php and catalog/admin/includes/configure.php are correct or you will have issues. Also, it's best to use lower case for you folder.
John
Thanks for the help.
How can I create a cover page to www.domain.com page?
Do I have to copy main_page.tpl.php or mainpage.php from fallback folder?
I looked around and can't find where this www.domain.com page is pulling information from....
Presumably you want the cover page to have the same look & feel of your catalog. The pages are made from a composite of many parts - not just one document/file.
Have look here for some ideas: http://wiki.oscdox.com/how_to
Hosting plans with installation, configuration, contributions, support and maintenance.
You can make your cover page however you want and call it index.php index.html index.htm index.shtml index.xhtml index.wml index.perl .......the list is long, but as long as your web server will look to that file then it will serve it. Since you asked this question you may be best just using html or xhtml for this page.
I thought you already had an idea for your cover/landing page. You can read up on some landing page ideas at Google Analytics and webmaster tools. Unless you have a great game plan with this you might think about just putting your store in your root folder and have your verbage on your main page. My site is not fancy in any way but I've been #1 on Yahoo and between 2 and 5 on Google in my industry for many years.
John
You could create an index.php file in the root directory, until you get something 'fancy' to show:
Code:<?php header( 'Location: http://yourdomain.com/catalog' ) ; ?>
Hosting plans with installation, configuration, contributions, support and maintenance.
As mentioned on my first reply...brain dead...trying to figure out why these newer releases...(that I have now idea what is changed) ..
ANYWAY?
As long as it's in your root...and you just need one page for your 'splash'.. As All have mentioned...just create another index.htm/html file.
You would then need a hyperlink into your cart (index.php)
BUT !! In your .htAccess file you may set the "pecking order" of what index file to use first...as your host may have that set...and you can not change it..
Or simple do a few index tests using .htm/.html etc...to see which comes up first.
More than likely...php is down the list.
trochia,
Download Beyond Compare 3 by Scooter Software for a 30 day trial and you'll be able to see all the differences plus do a whole lot more. It's well worth the time invested learning what BC3 can do because it can do a lot but you can get a comparison going very quickly. This way you won't get Dain Bramage![]()
John
Aston, I see you joined about a year ago. How far along are you with your store? Since I have an idea what your goal with this is (from PM) you can achieve it with the BTS template system that OSCMax uses. But, you're getting ahead of yourself and you really need to learn some html, css, and php to be able to do more with your site. Sitepoint has some good easy to read books that will help you a lot as well as countless sites with tutorials and how to. W3C is a great source. I could/would be so much further along if I had done this myself in the beginning, but I wasted way too much time doing things the hard way.
You might find this quote helpful from a great book on Sitepoint.
BUILD YOUR OWN DATABASE DRIVEN WEB SITE
USING PHP & MYSQL
BY KEVIN YANK
4TH EDITION
I still have sites that link to my catalog/default.php so I think there's a lot of validity to that but you can do a lot with htaccess likeAvoid Advertising Your Technology Choices
The examples we’ve seen so far have contained a mixture of plain HTML files (with
names ending in .html), and files that contain a mixture of HTML and PHP (with
names ending in .php). Although this distinction between file types may be useful
104 Build Your Own Database Driven Web Site Using PHP & MySQL
to you, the developer, there is no reason your users need to be aware of which pages
of your site rely on PHP code to generate them.
Furthermore, although PHP is a very strong choice of technology to build almost
any database driven web site, the day may come when you want to switch from
PHP to some new technology. When that day comes, do you really want all the
URLs for dynamic pages on your site to become invalid as you change the file names
to reflect your new language of choice?Code:Redirect 301 /catalog/default.php http://www.domain.com/ ## rewrite domain.com to www.domain.com RewriteCond %{HTTP_HOST} ^domain.com$ RewriteRule ^/?$ "http://www.domain.com/" [R=301,L] ## rewrite urls RewriteRule ^sitemapproducts.xml$ googleSitemapProducts.php RewriteRule ^sitemapcategories.xml$ googleSitemapCategories.php ## rewrite index.php to root RewriteCond %{THE_REQUEST} ^[A-Z]{3,9} /index.php HTTP/ RewriteRule ^index.php$ http://www.domain.com/ [R=301,L]
John
Bookmarks