Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Changed name of index.php


XtremeRovers

Recommended Posts

All,

I changed the name of the index.php to store.php. My questions is how do I get the links to index.php to change to store.php also.

 

Example, someone logs into the store, after successful login, they are redirected to the index.php. I would like them to be directed back to store.php.

 

Any help would be great :)

Live life authentically.

Link to comment
Share on other sites

Catalog/includes/filenames.php. Edit this part

  define('FILENAME_DEFAULT', 'index.php');

Change index.php to store.php

Link to comment
Share on other sites

Catalog/includes/filenames.php. Edit this part

  define('FILENAME_DEFAULT', 'index.php');

Change index.php to store.php

 

 

Doing such action renders the following error's

 

 

Warning: require(includes/languages/english/store.php) [function.require]: failed to open stream: No such file or directory in /public_html/store.php on line 33

 

Warning: require(includes/languages/english/store.php) [function.require]: failed to open stream: No such file or directory in /public_html/store.php on line 33

 

Fatal error: require() [function.require]: Failed opening required 'includes/languages/english/store.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in public_html/store.php on line 33

Live life authentically.

Link to comment
Share on other sites

You also need to rename all the translation files called index.php to shop.php.

 

/includes/xxxxxxxxx/index.php

Need help installing add ons/contributions, cleaning a hacked site or a bespoke development, check my profile

 

Virus Threat Scanner

My Contributions

Basic install answers.

Click here for Contributions / Add Ons.

UK your site.

Site Move.

Basic design info.

 

For links mentioned in old answers that are no longer here follow this link Useful Threads.

 

If this post was useful, click the Like This button over there ======>>>>>.

Link to comment
Share on other sites

You need to make the change in filenames.php but then also change the name of index.php in your root folder and also in your language folders. The next question is WHY???? would you want to change the name to shop.php, it is a waste of time IMO. It should either be changed to a keyword for your site or removed altogether such as www.mysite.com/

Link to comment
Share on other sites

You also need to rename all the translation files called index.php to shop.php.

 

/includes/xxxxxxxxx/index.php

 

 

Yep found that need to edit

// include server parameters
 require('includes/configure.php');

 if (strlen(DB_SERVER) < 1) {
   if (is_dir('install')) {
     header('Location: install/index.php');
   }
 }

 

to

// include server parameters
 require('includes/configure.php');

 if (strlen(DB_SERVER) < 1) {
   if (is_dir('install')) {
     header('Location: install/store.php');
   }
 }

Live life authentically.

Link to comment
Share on other sites

You need to make the change in filenames.php but then also change the name of index.php in your root folder and also in your language folders. The next question is WHY???? would you want to change the name to shop.php, it is a waste of time IMO. It should either be changed to a keyword for your site or removed altogether such as www.mysite.com/

 

 

You are probably correct in this statement.

 

I was doing it so that I can use one header and one footer in all my site pages. If I make and edit to header.php it effects all pages :)

Live life authentically.

Link to comment
Share on other sites

You also need to rename all the translation files called index.php to shop.php.

 

/includes/xxxxxxxxx/index.php

How embarrasing that I forgot that part. Sorry about that.

Link to comment
Share on other sites

How embarrasing that I forgot that part. Sorry about that.

 

Creighton University to University Nebraska Omaha to University Colorado Denver alumni here "nothing I miss about Omaha" but hey; thank you for your help

Live life authentically.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...