| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Converting all that links to "home.php" to the plain URL | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() Hi all,
I've made a little research on the problem of changing links to "home.php" to the plain URL (http://www.mysite.com) for SEO sake. I found a few threads, mostly answered by balinor. It seems that in a site that hasn't been throughoutly modified the link to home.php would appear in three places: 1. The logo on the top (that can be mended by changing the .htaccess or by doing this. 2. The "Home" link in the speed bar on the top, which can be changed by going to admin > administration > speed bar 3. The hierachy navigation over the middle column on the store, which is located on the "location.tpl". However, I can't find a way to change the link to that points to "home.php" to "http://www.mysite.com" in "location.tpl". I don't want to remove it as it has been done by him. Any suggestions?
__________________
Version 4.1.5 |
|||||||
#2
|
|||||||
|
|||||||
![]() Wallace,
Open your /skin1/location.tpl and find this line: Code:
Code:
Quote:
|
|||||||
#3
|
|||||||
|
|||||||
![]() Why not use .htaccess, route you store to the root (that is, to home.php), and use "/" for the store location.
DO NO use "/home.php" or "/xcart/home.php" or any other variation. Just make "/" your root.
__________________
xcart 4.5.4 gold+ w/x-payments 1.0.6; xcart gold 4.4.4 |
|||||||
#4
|
|||||||
|
|||||||
![]() Hi rooter,
Thank you so much, it worked like a charm! ![]() carpeperdiem, The .htaccess was already set to call "/" as root. Why it behaved like that, in spite of the change is a mystery to me...
__________________
Version 4.1.5 |
|||||||
#5
|
|||||||
|
|||||||
![]() Quote:
Another thing tha you may to be certian of (for SEO especially): Everywhere there is a call to your home page (such as your header image, or speedbar, or a redirect) make sure it is ONLY "/". I have seen some storese where the redirect was set correct (smarty) but hard coded links to /home.php were abundant. Just something to watch out for. No need to give google a reason to call your home page duplicate content, just because there are 2 unique links to it.
__________________
xcart 4.5.4 gold+ w/x-payments 1.0.6; xcart gold 4.4.4 |
|||||||
#6
|
|||||||
|
|||||||
![]() Thanks for the tip carpeperdiem, have changed the absolute link in the speedbar to only "/". As for the header image, it's been pointing to the root since we changed the .htaccess.
I'll keep a note on the "/". Hopefully other people will find this thread useful for their SEO.
__________________
Version 4.1.5 |
|||||||
#7
|
|||||||||
|
|||||||||
![]() That change for the location can be made in the auth.php
My code as follows for 4.0.x Code:
Change the URI according to where you want the link to go to from the location link. Cheers, Mark
__________________
Web Development Manager / Security X-Cart 4.0.13 + Customisations Payment Card Industry Compliant Web Site WWW: http://www.tommeetippee.co.uk/ MSN: info@voxia.co.uk |
|||||||||
![]() |
|
Thread Tools | Search this Thread |
|
|
|
|||
X-Cart forums © 2001-2020
|