X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Change from home.php to index.php (https://forum.x-cart.com/showthread.php?t=17073)

waqarahmed21 10-04-2005 09:17 AM

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,

balinor 10-04-2005 09:46 AM

This is currently being discussed here, please be sure to search thoroughly before posting. Thanks!

http://forum.x-cart.com/viewtopic.php?t=17433

waqarahmed21 10-04-2005 09:58 PM

Hi

Quote:

Simply setting DirectoryIndex home.php in an .htaccess file should do the trick, no customization to X-Cart should be required.

I have changed the .htaccess file with this code

Code:

DirectoryIndex index.php index.html home.php

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,

balinor 10-05-2005 03:52 AM

That's because that solution was not posted in reference to your question :)

waqarahmed21 10-05-2005 05:32 AM

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.

balinor 10-05-2005 05:38 AM

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?

waqarahmed21 10-05-2005 06:02 AM

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

balinor 10-05-2005 06:04 AM

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?

waqarahmed21 10-05-2005 06:25 AM

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

balinor 10-05-2005 06:29 AM

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


All times are GMT -8. The time now is 08:55 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.