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
Latest News: (loading..)
Change store's default homepage from index.php to some other filename
Started by Sohgave, Mar 31 2012 04:44 PM
home index.php change
7 replies to this topic
#1
Posted 31 March 2012 - 04:44 PM
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."
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
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
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
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
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)
See my Profile to learn more about add ons, templates, support plans and custom coding (click here)
#4
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).
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
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
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."
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
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.
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
Posted 02 April 2012 - 06:40 PM
DunWeb, 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
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
Posted 08 August 2012 - 12:26 PM
spooks, 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?
Also tagged with one or more of these keywords: home, index.php, change
osCommerce Online Merchant v2.x →
General Support →
please help my index page disappeared. Don"t know what code I may have erasedStarted by mauipilialoha, 29 Jan 2013 |
|
|
||
osCommerce Online Merchant v2.x →
General Support →
Adding content on default index.php content ABOVE the left columnStarted by rcall, 26 Jan 2013 |
|
|
||
osCommerce Online Merchant v2.x →
General Support →
Editing index.phpStarted by Libellula, 20 Aug 2012 |
|
|
||
osCommerce Online Merchant v2.x →
General Support →
Please help, having problem with my index.php as it redirects me to phpmyadmin loggingStarted by vdzmotorplex, 12 Aug 2012 |
|
|
||
osCommerce Online Merchant v2.x →
General Support →
array_merge error in adminStarted by brough, 14 Jul 2012 |
|
|









