| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
How to redirect to main domain name | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() 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 |
|||||||
#2
|
|||||||
|
|||||||
![]() 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. |
|||||||
#3
|
|||||||
|
|||||||
![]() 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:
__________________
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 |
|||||||
#4
|
|||||||||
|
|||||||||
![]() 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. ![]() ![]() |
|||||||||
#5
|
|||||||
|
|||||||
![]() 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 |
|||||||
|
|||
X-Cart forums © 2001-2020
|