![]() |
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. |
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? |
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 |
answered many times around here.
move your files to the root dir and then update your config.php file |
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! |
All times are GMT -8. The time now is 02:29 AM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.