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

default start page

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 05-17-2007, 06:39 PM
  Terrybraley's Avatar 
Terrybraley Terrybraley is offline
 

Senior Member
  
Join Date: Oct 2005
Location: Atlanta Georgia
Posts: 142
 

Default default start page

I want "index.html" to be my default start page. My problem is, If someone type in:
www.mysite/xcart/
It defaults to home.php and not index.html. I know they can just type in "home.php" and bypass the index.html all togeather, but thats not the point. My index.html page is going to have a "Enter" or "Leave" button. Hitting enter taking you to home.php and if they choose to leave it take them back to my home page.
__________________
Road Rash Apparel LLC
www.roadrashapparel.com

X-Cart Gold Ver.4.1.8
DSEFU Mod
PHP 4.3.11
MySQL server 4.1.22-max-log
MySQL client 5.0.18
Web server Apache
Operation system Linux
Perl 5.008
XML parser (expat) 1.95.6
Reply With Quote
  #2  
Old 05-18-2007, 02:54 AM
 
carpeperdiem carpeperdiem is offline
 

X-Guru
  
Join Date: Jul 2006
Location: New York City, USA
Posts: 5,399
 

Default Re: default start page

Why do you want a portal page? Most successful online stores drop the customer directly in. There is no need for index.html, home.php or any other variant.

This means simplifying your path to root and putting your store in the root. There is only one way in:

www.roadrashapparel.com

That's it... no other URLs to think about, worry about, deal with or fix.

Unless your business is not about selling things and the xcart store is an add-on, it would take some serious justification to argue for a portal page.

There are many, many threads up here discussing this.

Try a search for "install to root" or "portal" or "landing page" etc...

As Paul suggested, a simple line in .htaccess will do this for you - but you have to want to lose all the variations... put your store in root (get rid of the /xcart/ in the path) and you will simplify your life.

My $.02
__________________
xcart 4.5.4 gold+ w/x-payments 1.0.6; xcart gold 4.4.4
Reply With Quote
  #3  
Old 05-18-2007, 02:56 AM
 
carpeperdiem carpeperdiem is offline
 

X-Guru
  
Join Date: Jul 2006
Location: New York City, USA
Posts: 5,399
 

Default Re: default start page

PS -- you can still do a "landing page" as your primary page (for age restrictions or content) and still install to root -- just do it within the cart - static embedded pages work great for this. Hope this helps.
__________________
xcart 4.5.4 gold+ w/x-payments 1.0.6; xcart gold 4.4.4
Reply With Quote
  #4  
Old 05-18-2007, 03:59 AM
  Terrybraley's Avatar 
Terrybraley Terrybraley is offline
 

Senior Member
  
Join Date: Oct 2005
Location: Atlanta Georgia
Posts: 142
 

Default Re: default start page

My home page is www.roadrashapparel.com. There will be a link from there to /novelties.index.html

But if you just type in www.roadrashapparel.com/novelties/ it goes to /novelties.home.php Not what I want.

I know theres a simple fix to this, just can't find it.

pauldodman- plenty of post on this, I only post a question until I give up looking. And insted of saying there is plenty of post, maybe point me to the link or links would be more helpful. This is a fourm for us to help each other.

carpeperdiem - Thanks for the reply. The landing page for /novelties will be index.html. If someone type www.roadrashapparel.com/novelties it take you to home.php. Thats what I dont want.

I know they can just type in /novelties/home.php and avoid the index.html thats fine,
__________________
Road Rash Apparel LLC
www.roadrashapparel.com

X-Cart Gold Ver.4.1.8
DSEFU Mod
PHP 4.3.11
MySQL server 4.1.22-max-log
MySQL client 5.0.18
Web server Apache
Operation system Linux
Perl 5.008
XML parser (expat) 1.95.6
Reply With Quote
  #5  
Old 05-18-2007, 04:02 AM
  pauldodman's Avatar 
pauldodman pauldodman is offline
 

X-Guru
  
Join Date: Jul 2003
Location: Spain / UK
Posts: 3,054
 

Default Re: default start page

Well I gave you a massive clue on how to do it - sorry that wasn't enough.
__________________
Paul Dodman
e-business & m-commerce consultant
w: www.luminointernet.com
e: xcart@luminointernet.com

Professional X-Cart help, advice, support and services, specialists in Mobile X-Cart.
Reply With Quote
  #6  
Old 05-18-2007, 04:08 AM
  Terrybraley's Avatar 
Terrybraley Terrybraley is offline
 

Senior Member
  
Join Date: Oct 2005
Location: Atlanta Georgia
Posts: 142
 

Default Re: default start page

LOL, Yes you did. And I have tried changing some stuff in there, but I'm doing something wrong.
Do I need to change:
DirectoryIndex home.php index.php index.html
?
__________________
Road Rash Apparel LLC
www.roadrashapparel.com

X-Cart Gold Ver.4.1.8
DSEFU Mod
PHP 4.3.11
MySQL server 4.1.22-max-log
MySQL client 5.0.18
Web server Apache
Operation system Linux
Perl 5.008
XML parser (expat) 1.95.6
Reply With Quote
  #7  
Old 05-18-2007, 06:29 AM
  pauldodman's Avatar 
pauldodman pauldodman is offline
 

X-Guru
  
Join Date: Jul 2003
Location: Spain / UK
Posts: 3,054
 

Default Re: default start page

Yes, whichever file you want to be the main page, put first.
So
DirectoryIndex home.php index.php index.html

becomes

DirectoryIndex index.html home.php index.php
__________________
Paul Dodman
e-business & m-commerce consultant
w: www.luminointernet.com
e: xcart@luminointernet.com

Professional X-Cart help, advice, support and services, specialists in Mobile X-Cart.
Reply With Quote
  #8  
Old 05-18-2007, 06:31 AM
  Terrybraley's Avatar 
Terrybraley Terrybraley is offline
 

Senior Member
  
Join Date: Oct 2005
Location: Atlanta Georgia
Posts: 142
 

Default Re: default start page

Thank You pauldoman
__________________
Road Rash Apparel LLC
www.roadrashapparel.com

X-Cart Gold Ver.4.1.8
DSEFU Mod
PHP 4.3.11
MySQL server 4.1.22-max-log
MySQL client 5.0.18
Web server Apache
Operation system Linux
Perl 5.008
XML parser (expat) 1.95.6
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



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 02:02 AM.

   

 
X-Cart forums © 2001-2020