Solved

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

Posted on 2011-09-09
5
881 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

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

Are you using email marketing software? If not, you're missing out on effortless marketing and the reaching of desired conversion rates through email marketing software.
Although it can be difficult to imagine, someday your child will have a career of his or her own. He or she will likely start a family, buy a home and start having their own children. So, while being a kid is still extremely important, it’s also …
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
Any person in technology especially those working for big companies should at least know about the basics of web accessibility. Believe it or not there are even laws in place that require businesses to provide such means for the disabled and aging p…

708 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now