| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
Change from home.php to index.php | ||||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
Change from home.php to index.php
Hi All,
I want to change the default function of my site using index.php. On all links I have change code but the problem comes from $location variable. I am not getting where from it get value. Ok very prcisely my objective is to show the subcategories and breadcrumb with index.php. Any suggetion from yourside will really help me a lot. url of the website is www.kneebracesonline.com Thanks,
__________________
Version 3.5.13 and 4.0.13 |
|||||||
#2
|
|||||||
|
|||||||
This is currently being discussed here, please be sure to search thoroughly before posting. Thanks!
http://forum.x-cart.com/viewtopic.php?t=17433
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
#3
|
|||||||
|
|||||||
Hi
Quote:
I have changed the .htaccess file with this code Code:
But luck is not working at my side , still the urls under subcategory and breadcrumb are showing home.php Any suggetion from yourside will really help me a lot. Thanks,
__________________
Version 3.5.13 and 4.0.13 |
|||||||
#4
|
|||||||
|
|||||||
That's because that solution was not posted in reference to your question
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
#5
|
|||||||
|
|||||||
Hi
So it means that I am on wrong track. I found a file "location_ajust.php" under the directory of partner and admin. I am not sure are they linked with my problem or not. I made changes there but they were not fruitful. Is there any specific solution for my particular case or not? Secondly If I am on wrong track then please guide me in which direction I should look for. Thanks for any comments.
__________________
Version 3.5.13 and 4.0.13 |
|||||||
#6
|
|||||||
|
|||||||
Please clarify exactly what you are trying to do. The .htaccess file sets the landing page of your cart. If you don't want an entry page, you use index.php, which redirects to home.php. What is wrong with home.php?
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
#7
|
|||||||
|
|||||||
Thanks for quick reply.
My problem is, I don't want to use home.php any where in the site. Is it possible? I put all code of home.php in index.php and similarly in "categories.tpl" file I also change in the url i.e. replace "home.php" with "index.php". Now main categories are coming with right url like index.php?cat=231 The problem is with subcategories and with breadcrumb. They directed toward like home.php?cat=231 Url of the website is www.kneebracesonline.com Thanks, Waqar
__________________
Version 3.5.13 and 4.0.13 |
|||||||
#8
|
|||||||
|
|||||||
I'm thinking that it is going to be a bit more complex than that, as home.php is referenced in numerous files. Why would you want to do this?
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
#9
|
|||||||
|
|||||||
Actually this is client requirement. They want this change in order to make the site more SEO. Although I have studied here that there is no impact of using "index.php" instead of "home.php" regarding SEO point of view.
So any comments or guidance regarding current issue. Thanks Waqar Ahmed
__________________
Version 3.5.13 and 4.0.13 |
|||||||
#10
|
|||||||
|
|||||||
Yea, the client is always right, but in this case they aren't! I'd suggest opening a ticket with X-Cart to see what they have to say about it. Also might want to suggest this mod to your client, which would eliminate all SEO issues with php files:
http://www.safetynetweb.com/Dynamic-Search-Engine-Friendly-URLs-pr-1.html
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
|
|||
X-Cart forums © 2001-2020
|