Jump to content



Latest News: (loading..)

- - - - -

Change store's default homepage from index.php to some other filename

home index.php change

  • Please log in to reply
7 replies to this topic

#1   Sohgave

Sohgave
  • Members
  • 30 posts
  • Real Name:Shawn Kelshaw
  • Gender:Male

Posted 31 March 2012 - 04:44 PM

Is it possible (and if so, how difficult) to update the OSC store default homepage from "index.php" to any other filename? Thanks in advance...
s
Thanks,
Shawn

"Surface the ship! Prepare to muster all personnel to escape hatches.
Break out the rafts. Lash them to the deck.
We'll use them as shelters until the fleet arrives."

#2   Web-Source 5

Web-Source 5

    ¤

  • Members
  • 18 posts
  • Real Name:G.L.Walker
  • Gender:Male
  • Location:Texas

Posted 31 March 2012 - 05:23 PM

open includes/filenames.php  

look for FILENAME_DEFAULT  

This is where you would change the name. You may also want to scan the catalog side of the site for "index.php" and change any occurrences to your new  file name, or better yet, replace with FILENAME_DEFAULT

#3   DunWeb

DunWeb

    The Censored One

  • Members
  • 12,822 posts
  • Real Name:Chris
  • Gender:Male
  • Location:Ontario, Canada

Posted 31 March 2012 - 05:26 PM

@Sohgave

Use SEO URL's to make your site address search engine friendly.  The above post is the INCORRECT way to make changes to osCommerce.



Chris
:|: Was this post helpful ? Click the LIKE THIS button :|:

See my Profile to learn more about add ons, templates, support plans and custom coding (click here)

#4   MrPhil

MrPhil
  • Members
  • 4,194 posts
  • Real Name:Phil
  • Gender:Male

Posted 31 March 2012 - 05:42 PM

If your server is configured to look for something other than index.php, it should be possible to change its search order. On Apache servers, you might be allowed to add a DirectoryIndex command in .htaccess to specify "index" files to search for. The default order is usually index.html, index.htm, and finally, index.php. It would be rather unusual for a server not to look for index.php at all, but if you have index.htm/html in the directory, you could specify that index.php come first in the search order.

If this for SEO purposes, it would be better (as indicated previously) to use a proper SEO modification. If this is for "security", what exactly is it supposed to accomplish? "Security through obscurity" doesn't work for long. As part of SEO, it is common to change the visible name to index.html (changed back internally to index.php so the code can run), to hide the technology used (and allow a site to change to something else in the future, e.g., ASPX).

#5   Sohgave

Sohgave
  • Members
  • 30 posts
  • Real Name:Shawn Kelshaw
  • Gender:Male

Posted 31 March 2012 - 07:35 PM

Dear All,
Thank you for your suggests and insights. The nature of my question centered around creating a Facebook Fan app. Facebook requires your app to run on a secure server with the default page being a page name already dedicated to the OSC store experience. My Facebook store version will require a different skin (look and feel) but same data as the normal OSC store. My orininal plan was to copy/rename files pertinent for the Facebook experience. I ran into a corner when both the normal OSC store and the Facebook app setup required the same name for homepage.

I think my new plan is to actually create a clean OSC install dedicated for Facebook store. Sounds like this might be the best way to go versus all the other source code changes. I do have the SEO friendly page names on the board of todo's but that will need to be later. Thanks again for the feedback and if anyone sees issues with my direction, I'd appreciate hearing about their concerns.

s
Thanks,
Shawn

"Surface the ship! Prepare to muster all personnel to escape hatches.
Break out the rafts. Lash them to the deck.
We'll use them as shelters until the fleet arrives."

#6   spooks

spooks
  • Members
  • 7,017 posts
  • Real Name:Sam
  • Gender:Male
  • Location:UK

Posted 31 March 2012 - 07:38 PM

I would not change your default page to another, however there is no reason that the index page has to be what the default osC has, which is effectively a categories page i.e. that function can be moved to another page.
Sam

Remember, What you think I ment may not be what I thought I ment when I said it.

Contributions:


Auto Backup your Database, Easy way

Multi Images with Fancy Pop-ups, Easy way

Products in columns with multi buy etc etc

Disable any Category or Product, Easy way

Secure & Improve your account pages et al.

#7   Web-Source 5

Web-Source 5

    ¤

  • Members
  • 18 posts
  • Real Name:G.L.Walker
  • Gender:Male
  • Location:Texas

Posted 02 April 2012 - 06:40 PM

View PostDunWeb, on 31 March 2012 - 05:26 PM, said:

@Sohgave

Use SEO URL's to make your site address search engine friendly.  The above post is the INCORRECT way to make changes to osCommerce.

Chris

I'm sorry, but the question pertained to how to change a file name. SEO work was an assumption that you made. The information I gave was absolutely CORRECT.

#8   vampirehunter

vampirehunter
  • Members
  • 319 posts
  • Real Name:vampire

Posted 08 August 2012 - 12:26 PM

View Postspooks, on 31 March 2012 - 07:38 PM, said:

I would not change your default page to another, however there is no reason that the index page has to be what the default osC has, which is effectively a categories page i.e. that function can be moved to another page.

whats the procedure for moving the categories function out of the index.php file?