Move to new server, different folder
Posted 05 July 2012 - 02:23 PM
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
Posted 06 July 2012 - 03:19 AM
Posted 06 July 2012 - 08:03 AM
?? Having a store in the root is the best thing to do!
Or maybe a ready made theme for your shop ??
Warning: My posts may contain Horsemeat.
Posted 06 July 2012 - 08:37 AM
I agree, having the store in the root is MUCH better than in a sub-directory
See my Profile to learn more about add ons, templates, support plans and custom coding (click here)
Posted 06 July 2012 - 02:50 PM
- 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.
Posted 06 July 2012 - 03:14 PM
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.
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.
Posted 06 July 2012 - 03:54 PM
Edited by Biancoblu, 06 July 2012 - 03:59 PM.
Posted 09 July 2012 - 06:53 PM
thank you again.