Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls

Splash Page Alternatives

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions
 
Thread Tools Search this Thread
  #21  
Old 03-16-2004, 10:49 AM
  domspe's Avatar 
domspe domspe is offline
 

Advanced Member
  
Join Date: Mar 2004
Location: Sarasota, FL
Posts: 79
 

Default

http://shop.mpartworks.com

we just put the store in the root directory of the subdomain we created for our store... therefore, no splash page, no redirect, etc etc...

pretty easy mod too!
__________________
~jaime*
shop.mpartworks.com
~~~~~~~~~~~~~~
xcart pro 3.5.5
heavily modified
freeBSD 4.8
php 4.3.3
Reply With Quote
  #22  
Old 03-16-2004, 10:55 AM
 
forefront forefront is offline
 

Advanced Member
  
Join Date: Feb 2003
Posts: 43
 

Default

Quote:
Originally Posted by domspe
http://shop.mpartworks.com

we just put the store in the root directory of the subdomain we created for our store... therefore, no splash page, no redirect, etc etc...

pretty easy mod too!


http://shop.mpartworks.com still redirects to http://shop.mpartworks.com/home.php so what do you mean by "no redirect"?
Reply With Quote
  #23  
Old 03-16-2004, 12:27 PM
  BoomBoomBap's Avatar 
BoomBoomBap BoomBoomBap is offline
 

Senior Member
  
Join Date: Nov 2002
Location: San Francisco
Posts: 184
 

Default

Quote:
http://shop.mpartworks.com still redirects to http://shop.mpartworks.com/home.php so what do you mean by "no redirect"?

Meaning that there isnt a PHP file in the root that redirects to www.sitename.com/xcart/customer/home.php

Every site needs a root page. For their site the page is home.php

putting the store in the root directory of the subdomain is a great idea.
__________________
Site 1 > XCART LIVE 3.4.12

Site 2 > XCART LIVE 4.0.17
Reply With Quote
  #24  
Old 03-16-2004, 02:13 PM
 
forefront forefront is offline
 

Advanced Member
  
Join Date: Feb 2003
Posts: 43
 

Default

Quote:
Originally Posted by BoomBoomBap
Quote:
http://shop.mpartworks.com still redirects to http://shop.mpartworks.com/home.php so what do you mean by "no redirect"?

Meaning that there isnt a PHP file in the root that redirects to www.sitename.com/xcart/customer/home.php

Every site needs a root page. For their site the page is home.php

putting the store in the root directory of the subdomain is a great idea.

Not correct.

http://shop.mpartworks.com/ actually loads http://shop.mpartworks.com/index.php which then redirects to http://shop.mpartworks.com/home.php - try entering http://shop.mpartworks.com/ here:

http://www.rexswain.com/httpview.html
Reply With Quote
  #25  
Old 03-16-2004, 02:30 PM
  BoomBoomBap's Avatar 
BoomBoomBap BoomBoomBap is offline
 

Senior Member
  
Join Date: Nov 2002
Location: San Francisco
Posts: 184
 

Default

Sorry. This discussion exhausts me. Would someone else like to offer their assistance?

Im setting my preference as "unwatch topic" so no more replies from me...
__________________
Site 1 > XCART LIVE 3.4.12

Site 2 > XCART LIVE 4.0.17
Reply With Quote
  #26  
Old 03-16-2004, 02:38 PM
 
forefront forefront is offline
 

Advanced Member
  
Join Date: Feb 2003
Posts: 43
 

Default

Quote:
Originally Posted by BoomBoomBap
Sorry. This discussion exhausts me. Would someone else like to offer their assistance?

The question remains unaswered which I agree is exhausting.

In the above site there is a redirect going on, but my question of how one sets the option mentioned of... "starting from X-Cart version 3.5.* you can rename customer/ directory as you want and even put it to your root directory (and cart URLs will look like www.shop.com, www.shop.com/home.php, www.shop.com/product.php, not as www.shop.com/customer/home.php)..."

...remains unaswered.
Reply With Quote
  #27  
Old 03-16-2004, 02:56 PM
 
rackit rackit is offline
 

Advanced Member
  
Join Date: Jan 2004
Posts: 31
 

Default

Quote:
Originally Posted by BoomBoomBap
Sorry. This discussion exhausts me. Would someone else like to offer their assistance?

Im setting my preference as "unwatch topic" so no more replies from me...

I see this topic got sidelined. There's an easy solution for you. Each server has a list of pages that it will go to first when your page is called for. It usually goes in this order: index.htm, index.php, home.htm, home.php. Try deleting index.php and see if your site will automatically go to home.php. If it doesn't, call your host and ask them to change your index file to home.php.
Reply With Quote
  #28  
Old 03-16-2004, 02:58 PM
  TelaFirma's Avatar 
TelaFirma TelaFirma is offline
 

X-Adept
  
Join Date: Nov 2002
Location: North Carolina USA
Posts: 930
 

Default

Here is some more information on the redirects and what you should and should not do.

First, you should not use the page that installs with X-Cart. It used a header redirect that generates a 302 error code. A 302 is a temporary redirect and some search engines do not like that.

The reason that they do not like it is that it is a common thing for people to do to try to get better listings. They will register multiple domain names, create redirect pages to one single site and then register all the domain names with the search. Google "frowns" on this.

What you should have your site do is generate a 301 code for a redirect. This is a permanent redirect. The best way to do this is through the .htaccess file. You should create entries like this:

Code:
Redirect permanent /index.html http://www.yoursite.com/catalog/index.html Redirect permanent /index.php http://www.yoursite.com/catalog/index.html Redirect permanent /index.htm http://www.yoursite.com/catalog/index.html

This assumes that this is the path to your catalog. It also covers all three instances of standard index pages that are configured with *NIX servers.

It is important that you precede each listing with Redirect permanent and not just Redirect. The former generates a 301 code and the later will still generate a 302 code.
Reply With Quote
  #29  
Old 03-22-2004, 11:13 AM
  domspe's Avatar 
domspe domspe is offline
 

Advanced Member
  
Join Date: Mar 2004
Location: Sarasota, FL
Posts: 79
 

Default the answer

Thanks TelaFirma - thats some good advice!

Yes, temporarily, my index.php file redirects to home.php. OMG! i'll have to remake my index to be home.php - the tragedy - my point was, it was not redirecting to some subdirectory, which IMO sucks... there was no need for the exhausting discussion, just a typing error on my part

anyhow, the answer to how to change the customer or any other directory lies in the top.inc.php file -

Quote:
if (!defined('DIR_CUSTOMER')) {

#
# Directories structure definitions
#

#
# Real path to the directory where X-Cart is installed
# If you have problems with __FILE__ constant definition on your server
# you can specify path directly. For example:
# $xcart_dir = '/home/user/public_html/xcart';
#
$xcart_dir = realpath(dirname(__FILE__));

# Directories location definition
# Examples:
# Customer's scripts are placed into the X-Cart subdirectory:
# define ('DIR_CUSTOMER', '/<name_of_directory>');
# define ('DIR_CUSTOMER', '/customer');
# define ('DIR_ADMIN', '/admin');
# define ('DIR_ADMIN', '/service_area/administration');
#
# (!) Customer's scripts are placed into the root X-Cart directory:
# define ('DIR_CUSTOMER', '');
#
define ('DIR_CUSTOMER', '');
define ('DIR_ADMIN', '/admin');
define ('DIR_PROVIDER', '/provider');
define ('DIR_PARTNER', '/partner');

#
# Note: DIR_PARTNER is valid only for installed X-Affiliate module
#
}
__________________
~jaime*
shop.mpartworks.com
~~~~~~~~~~~~~~
xcart pro 3.5.5
heavily modified
freeBSD 4.8
php 4.3.3
Reply With Quote
  #30  
Old 03-27-2004, 07:45 PM
  adpboss's Avatar 
adpboss adpboss is offline
 

X-Man
  
Join Date: Feb 2003
Location: Ontario, Canada
Posts: 2,389
 

Default

I looked through the html_catalog.php and I think I have an idea of how to generate the catalog index in the site root but I don't have time or the abililty to test right now.

It would be darn helpful for someone to post that information if they were willing to share.
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Forum Jump


All times are GMT -8. The time now is 03:43 PM.

   

 
X-Cart forums © 2001-2020