PDA

View Full Version : Changing the name of index.php to swindex.php


stugee
28-03-07, 02:49
Hi - I'm pretty new to php.
I installed everything in the root of my website, thinking it would cause a conflict with my index.html. Well, it didn't on my laptop, but it did on my desktop (they're running different versions of Internet Explorer).
Anyway, I have renamed the index.php file to swindex.php and it all 'appears' to work, except that clicking on the top left logo (ShopWindow Client) does not now work, because it expects to find index.php.

2 questions:

1) Is there a file I can change so that this link expects to find swindex.php ?

2) Would there be any further adverse effects that I may not have come accross yet ?

Hope somebody can help !
Stuart

gunneradt
28-03-07, 11:06
why not just to a new folder on your root drive - that's what I did - then you don't have to change the name.

shopper
29-03-07, 13:40
Original code:
<a href="{$P_INDEX}" title="Return to {#siteTitle#} home page"><img src="{$templatePath}/images/sw_logo.gif" alt="{#siteTitle#}" title="{#siteTitle#}" /></a>

change code:

<a href="http://www.yourdomainanme.com/swindex.php" title="Return to {#siteTitle#} home page"><img src="{$templatePath}/images/sw_logo.gif" alt="{#siteTitle#}" title="{#siteTitle#}" /></a>

Hope this will help you.

regards
shopper