Thank you both.
I did add the rewrite rules in the wrong .htaccess file. This was because my httpdocs folder did not have any. I just created the file for the httpdocs folder and uploaded it.
I still have the same problem when - I click on a category in my category tree.
- When I do a search for a product and then click on a product to go to its page..
This is the .htaccess file in my httpdocs folder. (I added in a rewrite rule for aan html extension and put my shop name in the last line in case it was needed)
BEGIN CEON URI MAPPING REWRITE RULE
RewriteEngine On
Don't rewrite any URIs ending with a file extension (ending with .[xxxxx])
RewriteCond %{REQUEST_URI} !.[a-z]{2,5}$
[OR]
RewriteCond %{REQUEST_URI} .(html|htm|php)$ [NC]
Don't rewrite any URIs for some, popular specific file format extensions,
which are not covered by main file extension condition above
RewriteCond %{REQUEST_URI} !.(mp3|mp4|h264)$ [NC]
Don't rewrite any URIs for some specific file format extensions,
which are not covered by main file extension condition above
Uncomment the following line to apply this condition! (Remove the # at the start of the next line)
#RewriteCond %{REQUEST_URI} !.(3gp|3g2|h261|h263|mj2|mjp2|mp4v|mpg4|m1v|m2v|m4u|f4v|m4v|3dml)$ [NC]
Don't rewrite admin directory
RewriteCond %{REQUEST_URI} !^/workhere [NC]
Don't rewrite editors directory
RewriteCond %{REQUEST_URI} !^/editors/ [NC]
Don't rewrite optional_fields directory
RewriteCond %{REQUEST_URI} !^/optional_fields/ [NC]
Don't rewrite classes directory
RewriteCond %{REQUEST_URI} !^/classes/ [NC]
Don't rewrite feed directory
RewriteCond %{REQUEST_URI} !^/feed/ [NC]
Don't rewrite plesk-stat directory
RewriteCond %{REQUEST_URI} !^/plesk-stat/ [NC]
Don't rewrite checkout_by_amazon directory
RewriteCond %{REQUEST_URI} !^/checkout_by_amazon/ [NC]
Don't rewrite _docs directory
RewriteCond %{REQUEST_URI} !^/_docs/ [NC]
Don't rewrite picture_library directory
RewriteCond %{REQUEST_URI} !^/picture_library/ [NC]
Don't rewrite sql updates directory
RewriteCond %{REQUEST_URI} !^/sql\ updates/ [NC]
Don't rewrite extra_datafiles directory
RewriteCond %{REQUEST_URI} !^/extra_datafiles/ [NC]
Don't rewrite auto_loaders directory
RewriteCond %{REQUEST_URI} !^/auto_loaders/ [NC]
Handle all other URIs using Zen Cart (its index.php)
RewriteRule .*/sourceforherbs/index.php [QSA,L]
END CEON URI MAPPING REWRITE RULE