| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
home.php to index.php | ||||
![]() |
|
|
Thread Tools | Search this Thread |
#11
|
|||||||
|
|||||||
![]() I'm wondering how to get rid of the "home.php"
Does anyone know how I would do that. So instead of a visitor landing on: www*widgets*com/home.php, they would just end up at www*widgets*com.
__________________
X-Cart: Version 4.1.9 Apache: Version 1.3.39 (Unix) PHP: Version 5.2.4 |
|||||||
#12
|
|||||||
|
|||||||
![]() If you have DirectoryIndex home.php in your htaccess file and type in yourdomain.com, it should just show yourdomain.com without the home.php.
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
#13
|
|||||||
|
|||||||
![]() Our cart resides in /shop instead of our root html directory
What is the proper way to re-direct traffic to /shop/home.php without compromising SEO and without using an index.html landing page? 1) In .htaccess can I use directoryIndex shop/home.php 2) Use an index.php in our root folder that redirects to shop/home.php (or is this just as bad as a meta redirect from an index.html file? 3) Other options that I should consider? Thanks in advance for any feedback. -Bill
__________________
Bill X-Cart 4.1.9 |
|||||||
#14
|
|||||||
|
|||||||
![]() There really isn't a 'good' way to have the site in a sub-folder at all. The ideal setup is to move the site to the root. Is there a reason you can't do that?
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
#15
|
|||||||
|
|||||||
![]() balinor,
Thank you for your reply I guess I can do that... The site has been live a while and I just started trying some SEO using DSEFU and the XML sitemap... I was just worried about loosing existing links to web content. What your saying is that in the long run its gonna be better to just put the cart in the root location right?
__________________
Bill X-Cart 4.1.9 |
|||||||
#16
|
|||||||
|
|||||||
![]() Yes, particularly now that you changed the urls with DSEFU, it is a great time to move the site to the root. Just use mod_rewrite to redirect all traffic from the subfolder to the root and you won't lose anything.
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
#17
|
|||||||
|
|||||||
![]() Thanks for the input. That's just the nudge I needed to make the change
![]()
__________________
Bill X-Cart 4.1.9 |
|||||||
#18
|
|||||||
|
|||||||
![]() I do not wish to transfer my site to root directory as I will loose page ranking
Can I use this in the htaccess file to redirect to xcart folder DirectoryIndex index.php /xcart/index.php
__________________
yages x-cart version 4.5.5 |
|||||||
#19
|
|||||||
|
|||||||
![]() Trust me, you DO want to transfer it to the root. If you properly redirect from the xcart/ folder to the root, you won't lose ranking, and will benefit from having it out of the root. I've been doing this a long time, the site in the root, even if you have had it in a sub-directory for a long time is a change you definitely want to make.
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
#20
|
|||||||
|
|||||||
![]() Quote:
Just another quick question. I noticed that changing the DirectoryIndex to home.php works, but I notice that the original URL with "home.php" attachment still exists. Example: http://www.expresscomputersystems.com/ www*expresscomputersystems*com/home.php Where would be the best place to redirect without causing a loop? Thanks!
__________________
X-Cart: Version 4.1.9 Apache: Version 1.3.39 (Unix) PHP: Version 5.2.4 |
|||||||
|
|||
X-Cart forums © 2001-2020
|