Web Hosting Forum | Lunarpages
News: April 3, 2008 - New Contest! - Win 5 Years of Hosting and $1,000!
May 5, 2008 - May 08 Web Site of the Month? - Submit your LINKS!!!
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
May 16, 2008, 04:55:33 PM


Login with username, password and session length


Pages: [1]   Go Down
  Print  
Author Topic: Going Live with osCommerce  (Read 1513 times)
Gods Eternal Masterpiece
Newbie
*
Offline Offline

Posts: 2


« on: April 10, 2008, 10:05:23 AM »

 Confused I have just installed osCommerce, but I do not know how to set it up on my main page. How do you transfer the store to the public_html folder without breaking any relative links that exist?
Logged
MrPhil
Über Jedi
*****
Offline Offline

Posts: 2831


« Reply #1 on: April 10, 2008, 05:57:11 PM »

Did you install it into a subdirectory under public_html/, such as public_html/eStore/? If so, good -- leave it there. If you want a visitor to see your own Home Page first, just put a link into public_html/index.html (your Home Page) to go to /eStore/index.php. If you want your visitors to go directly into your store, either do a redirection in cPanel/.htaccess to go to /eStore/index.php, or use the following public_html/index.html:

Code:
<html>
<head>
  <title>Welcome to My Store</title>
  <meta http-equiv="refresh" content="0; url=/eStore/index.php" />
</head>
<body>
  <p>You should be immediately redirected to My Store. If not, please
<a href="/eStore/index.php">click here</a> to get to the store.</p>
</body>
</html>
Logged

camille
Spacescooter Operator
*****
Offline Offline

Posts: 45


« Reply #2 on: April 30, 2008, 02:56:24 PM »

MrPhil -

Do you think its better to have a subdirectory?  I originally installed my shop with /store and was thinking of removing this root.  Just curious.  (I have a redirect)
Logged
MrPhil
Über Jedi
*****
Offline Offline

Posts: 2831


« Reply #3 on: April 30, 2008, 05:14:34 PM »

Yes, I strongly believe that every major subsystem on your site (store, blog, forum, gallery, other pages) should be installed into its own directory under the site root. I leave the site root empty except for an index file and site support files such as error pages, robots.txt, favicon.ico, etc. This gives you flexibility... even if you currently plan only to have a store, what if in the future you want to add a blog or forum so customers can rave about how good your products are? The only downside is that while you have only one subsystem on your site (say, a store), it's an extra step (through redirection, a dummy index.html with a meta tag, or a splash page with a link) to get to your store. I think that's a small price to pay for having everything cleanly separated, rather than all mixed up together (if that's even possible) or cluttering up the root. Fantastico tries to prevent you from installing everything into the same directory (e.g., site root), but a manual installation could result in your wiping out files belonging to another subsystem. Keeping them separated makes it easy to upgrade or delete a subsystem, or replace it with another implementation. That's my two cents on the subject.
Logged

Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.3 | SMF © 2006-2007, Simple Machines LLC
Seo4Smf v0.2 © Webmaster's Talks


Valid XHTML 1.0! Valid CSS! Dilber MC Theme by HarzeM