Solved

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

Posted on 2011-09-09
5
901 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Original post  on Monitis Blog. Web performance monitoring is broken into two camps: passive and active. Passive monitoring is defined as looking at real-world historical performance by monitoring actual log-ins, site hits, clicks, requests for …
This article was originally published on Monitis Blog, you can check it here . Today it’s fairly well known that high-performing websites and applications bring in more visitors, higher SEO, and ultimately more sales. By the same token, downtime…
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

628 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