![]() |
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, |
This is currently being discussed here, please be sure to search thoroughly before posting. Thanks!
http://forum.x-cart.com/viewtopic.php?t=17433 |
Hi
Quote:
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, |
That's because that solution was not posted in reference to your question :)
|
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. |
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?
|
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 |
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?
|
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 |
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.