Solved

osCommerce v2.2 RC1 html files not showing for Products and Categories after server move

Posted on 2011-09-09
5
893 Views
Last Modified: 2012-05-12
osCommerce v2.2 RC1 site moved to new server.  All files backed up and ftp'd up to new server and database exported and imported to new server, config.php files changed etc.
Store website is working from in funcitonality with creating an account, logging in and purchasing a product, all database data looks intact for Products.
However when you click on a category or product to see more of description the generated URL to a .html file is not found.
PHP version on my server is 5.1.6
website with problem is www.domain.ie
0
Comment
Question by:littlemissg
  • 3
  • 2
5 Comments
 
LVL 7

Accepted Solution

by:
boon86 earned 500 total points
ID: 36509800
look like you have missing .htaccess, try copy the .htaccess files from
old server to new server.

if htaccess already copied then your apache must not configured properly for
mod_rewrite.


check for httpd.conf:

AllowOverwrite none
change to:
AllowOverwrite All

then restart apache.

That should help.

0
 
LVL 7

Expert Comment

by:boon86
ID: 36509816
here is the missing .htaccess:

# Begin Ultimate SEO V2.2d 
Options +FollowSymLinks
RewriteEngine On 

  # RewriteBase instructions 
  # Change RewriteBase dependent on how your shop is accessed as below. 
  # http://www.mysite.com = RewriteBase / 
  # http://www.mysite.com/catalog/ = RewriteBase /catalog/  
  # http://www.mysite.com/catalog/shop/ = RewriteBase /catalog/shop/ 

  # Change the following line using the instructions above  
  
RewriteBase /YOU HAVE TO CHANGE ME/

RewriteRule ^(.*)-p-(.*).html$ product_info.php?products_id=$2&%{QUERY_STRING}
RewriteRule ^(.*)-c-(.*).html$ index.php?cPath=$2&%{QUERY_STRING}
RewriteRule ^(.*)-m-(.*).html$ index.php?manufacturers_id=$2&%{QUERY_STRING}
RewriteRule ^(.*)-pi-(.*).html$ popup_image.php?pID=$2&%{QUERY_STRING}
RewriteRule ^(.*)-by-(.*).html$ all-products.php?fl=$2&%{QUERY_STRING}
RewriteRule ^(.*)-t-(.*).html$ articles.php?tPath=$2&%{QUERY_STRING}
RewriteRule ^(.*)-a-(.*).html$ article_info.php?articles_id=$2&%{QUERY_STRING}
RewriteRule ^(.*)-au-(.*).html$ articles.php?authors_id=$2&%{QUERY_STRING}
RewriteRule ^(.*)-pr-(.*).html$ product_reviews.php?products_id=$2&%{QUERY_STRING}
RewriteRule ^(.*)-pri-(.*).html$ product_reviews_info.php?products_id=$2&%{QUERY_STRING}
RewriteRule ^(.*)-f-(.*).html$ faqdesk_info.php?faqdesk_id=$2&%{QUERY_STRING}
RewriteRule ^(.*)-fc-(.*).html$ faqdesk_index.php?faqPath=$2&%{QUERY_STRING}
RewriteRule ^(.*)-fri-(.*).html$ faqdesk_reviews_info.php?faqdesk_id=$2&%{QUERY_STRING}
RewriteRule ^(.*)-fra-(.*).html$ faqdesk_reviews_article.php?faqdesk_id=$2&%{QUERY_STRING}
RewriteRule ^(.*)-i-(.*).html$ information.php?info_id=$2&%{QUERY_STRING}
RewriteRule ^(.*)-links-(.*).html$ links.php?lPath=$2&%{QUERY_STRING}
RewriteRule ^(.*)-pm-([0-9]+).html$ info_pages.php?pages_id=$2&%{QUERY_STRING}
RewriteRule ^(.*)-n-(.*).html$ newsdesk_info.php?newsdesk_id=$2&%{QUERY_STRING}
RewriteRule ^(.*)-nc-(.*).html$ newsdesk_index.php?newsPath=$2&%{QUERY_STRING}
RewriteRule ^(.*)-nri-(.*).html$ newsdesk_reviews_info.php?newsdesk_id=$2&%{QUERY_STRING}
RewriteRule ^(.*)-nra-(.*).html$ newsdesk_reviews_article.php?newsdesk_id=$2&%{QUERY_STRING}
RewriteRule ^(.*)-po-([0-9]+).html$ pollbooth.php?pollid=$2&%{QUERY_STRING}
# End Ultimate SEO V2.2d

Open in new window


its for Ultimate SEO plugin, i not sure if that suite you.

Good luck
0
 

Author Comment

by:littlemissg
ID: 36509866
Hi Thanks for reply
Yes I had suspected it is a htaccess issue, I was unable to access the existing .htacess file as I do not have root login to old server just FTP and it is not showing up in FTP client

Do you know of a way to access the old htaccess file via FTP ?

Or how I can determine what the file contents need to be

The above doesn't work, I suspect SEO plugin not installed as the products_description table doesn't have any SEO urls (maybe this is nothing to do with it, just guessing :)

0
 

Author Comment

by:littlemissg
ID: 36509898
found out how to access .htaccess file from FTP client, add file mask of -la
Got file, uploaded all ok
Thanks a million
0
 
LVL 7

Expert Comment

by:boon86
ID: 36509899
1st download : http://downloads.sourceforge.net/filezilla/FileZilla_3.5.1_win32-setup.exe

2nd  read: http://www.intrepid.com.au/how-to-view-htaccess-with-filezilla/

you should able to see the .htaccess files

if not, you will need to contact your old hosting to zip and send the .htaccess
to you.

Hope that help.
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Any business that wants to seriously grow needs to keep the needs and desires of an international audience of their websites in mind. Making a website friendly to international users isn’t prohibitively expensive and can provide an incredible return…
Introduction This article is intended for those who are new to PHP error handling (https://www.experts-exchange.com/articles/11769/And-by-the-way-I-am-New-to-PHP.html).  It addresses one of the most common problems that plague beginning PHP develop…
This tutorial demonstrates how to identify and create boundary or building outlines in Google Maps. In this example, I outline the boundaries of an enclosed skatepark within a community park.  Login to your Google Account, then  Google for "Google M…
The viewer will get a basic understanding of what section 508 compliance can entail, learn about skip navigation links, alt text, transcripts, and font size controls.

821 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question