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

How to redirect to main domain name

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 05-15-2005, 01:28 PM
 
Jeffos Jeffos is offline
 

Advanced Member
  
Join Date: Apr 2005
Posts: 38
 

Default How to redirect to main domain name

Hi My x-cart is currently accessible from

http://mydomain.com/X-CART/homep.php

is there a way that :

1. I could access it just by typing http://mydomain.com
2. the address bar stays on http://mydomain.com while browsing the site and not showing all the addition links paths, product id, etc..

Thank you

J.
__________________
Version 4.0.13
Reply With Quote
  #2  
Old 05-15-2005, 06:12 PM
 
instinctual instinctual is offline
 

eXpert
  
Join Date: Nov 2003
Posts: 247
 

Default take a look...

Take a look at your index.php file within the x-cart root file system...that will give you a good fast forward on where to start - that file simply redirects you to home.php - copying and then modifying that file and putting it into your main root directory will work for your redirect on the main domain name. Alternatively you could use an .htaccess file, upto you.

As far as having the domain name remain the same without seeing the "product.php?productid=x" type of url, you would have to do a frameset to accomplish this - a thin 1 pixel tall frame at the top would do it - but I wouldn't recommend it as SEO would go down the drain...

Why are you trying to accomplish this, what's your goal?
__________________
Instinctual
8,000 feet up in the Rocky Mountains of Colorado
X-Cart Versions 3.5.x - 4.0.x

IF you xcart, THEN you prosper, ELSE you fail. ELSEIF xcart fails, THEN you fix it, all the WHILE {loop}\'ing {section}\'s to feed your $smarty mind.
Reply With Quote
  #3  
Old 05-26-2005, 10:43 AM
 
SkullHead SkullHead is offline
 

Advanced Member
  
Join Date: Apr 2005
Posts: 30
 

Default

Just put this in a text file and name it index.php and put it in your public_html folder. Then all you have to do is type www.yourdomain.com and it'll redirect you. It'll help you with your 1st question but not the second.



Code:
<?php header("Location: http://www.yourdomain.com/xcart/home.php"); exit; ?>
__________________
4.0.17
PHP 4.4.7
Apache
MySQL server 5.0.51a-log
MySQL client 4.1.11
Web server Apache
Operation system Linux
Perl 5.008008
Reply With Quote
  #4  
Old 05-27-2005, 03:33 AM
  shan's Avatar 
shan shan is offline
 

X-Guru
  
Join Date: Sep 2002
Location: Birmingham, UK
Posts: 6,163
 

Default

answered many times around here.

move your files to the root dir and then update your config.php file
__________________
Looking for a reliable X-cart host ?
You wont go wrong with either of these.

EWD Hosting
Hands On Hosting
Reply With Quote
  #5  
Old 05-27-2005, 11:11 AM
 
jeff_kennedy@cox.net jeff_kennedy@cox.net is offline
 

Newbie
  
Join Date: May 2005
Posts: 1
 

Default

I think I'm going through the same battle here.

I don't want anything to be in an /xcart subdirectory. I want everything on the root of the URL. I'm thinking that it's as easy as copying the extracted xcart/* files to '.'. This is great and all, but then one wonders about security. I'm sure there are scripts inside of this directory that are used purely for installation, setup, and administration, and I have not seen any attempt to secure these files.

Are there any documents in regards to securing the installed x-cart from people randomly executing these install and setup scripts? This would be in addition to the origional poster's question.

Thanks!
__________________
jeff_kennedy
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 11:54 AM.

   

 
X-Cart forums © 2001-2020