Good afternoon,
Sorry if this has been answered before but i am struggling to find the solution.
I have moved a live site from one server to another and updated the configure files to reflect this, the home page loads up with out an issue but as soon as i try and navigate to any of the links i get an error message....
The requested URL /index.php was not found on this server.
However if I reroute the apache server to go direct to installation folder instead of going into it by /oscommerce it will work without a problem....
I have played around with the configure files for days with no joy, does anybody have any experience with this?
Thanks in advance
Latest News: (loading..)
Move to new server, different folder
Started by Simon_Inman, Jul 05 2012 02:23 PM
9 replies to this topic
#1
Posted 05 July 2012 - 02:23 PM
#3
Posted 06 July 2012 - 03:19 AM
What changes between the two servers? Same or different domain name? Same or different path (directory structure)? Any change to the database name/location/userID/password? Are you using any add-on for SEO/SEF? It sounds like you messed up the configuration if it's looking for /index.php, and your file is actually /catalog/index.php (unless your store is actually in the root, which is a very bad thing to do).
#4
Posted 06 July 2012 - 08:03 AM
MrPhil, on 06 July 2012 - 03:19 AM, said:
unless your store is actually in the root, which is a very bad thing to do
?? Having a store in the root is the best thing to do!
Dummies guide to designing osCommerce 2.3 Click Me
Or maybe a ready made theme for your shop ??
Warning: My posts may contain Horsemeat.
Or maybe a ready made theme for your shop ??
Warning: My posts may contain Horsemeat.
#5 ONLINE
Posted 06 July 2012 - 08:37 AM
@MrPhil
@burt
I agree, having the store in the root is MUCH better than in a sub-directory
Chris
Quote
unless your store is actually in the root, which is a very bad thing to do
@burt
Quote
?? Having a store in the root is the best thing to do!
I agree, having the store in the root is MUCH better than in a sub-directory
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)
#6
Posted 06 July 2012 - 02:50 PM
It's bad for several reasons:
- You get your application (osC) files mixed in with your general site files (.htaccess, favicon.ico, robots.txt, *.shtml, php.ini, etc.), meaning that it's too easy to accidentally erase or misedit system files when you meant to be working on your application files.
- When you want to add a second application, and perhaps a site-wide landing page, you may find yourself moving your store to where it should have been in the first place, one level down in its own directory tree. This will invalidate all your customers' bookmarks and search engine indices. It's a lot of work and not foolproof to bloat the .htaccess with a bunch of URL rewrites.
- You don't want to filter URLs (in .htaccess) through one application (osC) and then have to undo some of those changes when you get down a level to another application.
- You can cleanly separate your .htaccess and php.ini configurations into multiple levels, applying only those things that pertain to your application at that level. This keeps different applications from stomping all over each other's settings.
#7
Posted 06 July 2012 - 03:14 PM
@MrPhil
My store is in the root as that is the main area. I am thinking of adding a blog, which will be in a file say called blog. The site will link to the blog, and that will be the only link. Mr Phil, are you now saying that is incorrect. I read somewhere that having the shop in the root folder was always better for seo and things like that.
My store is in the root as that is the main area. I am thinking of adding a blog, which will be in a file say called blog. The site will link to the blog, and that will be the only link. Mr Phil, are you now saying that is incorrect. I read somewhere that having the shop in the root folder was always better for seo and things like that.
REMEMBER BACKUP, BACKUP AND BACKUP
I am not a coder, so dont bother sending PMs asking for help as you wont get any.
OSC has a steep learning curve, but in general the program does work. If it doesnt work, the chances are it is something you have done.
I am not a coder, so dont bother sending PMs asking for help as you wont get any.
OSC has a steep learning curve, but in general the program does work. If it doesnt work, the chances are it is something you have done.
#9
Posted 06 July 2012 - 03:54 PM
I'm not an osc expert, I'm not a coder, never have been and probably never will be, I've done stupid things (Gary you know that
) but damn I never mixed up my osc files with any other files in my root and accidentally mistook one for another, it just takes a little attention and I'm sure most people know how to do that.
Edited by Biancoblu, 06 July 2012 - 03:59 PM.
~ Don't mistake my kindness for weakness ~
#10
Posted 09 July 2012 - 06:53 PM
thank you for your help, i have moved the files to the root folder now and it works fine, i will leave them there. I have also checked on my .htaccess file and noticed the rewrite configuration which i could have edited.
thank you again.
thank you again.









