Ecommerce software home
Shopping Cart Software Forum for Ecommerce Templates
 
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

Find us on Facebook Follow us on Twitter View our YouTube channel
Search our site
 All Forums
 Technical
 PHP (Unix / Linux / Apache) versions
 manufacturers.php showing product categories
Author « Topic »  

EllenD
Advanced Member

United Kingdom
424 Posts

Posted - 04/05/2024 :  02:09:45  
Hi, I have a manufacturers.php file set up some time ago which is no longer working. I have recently updated to v7.7.4, not sure if this is the reason or not.

When I go to manufacturers.php I see all the top level product categories. The breadcrumb is "Home >> All Products". Previously, I would see a list of the manufacturer logos which I have set up.
https://finneyswoodfinishes.co.uk/manufacturers.php

Not all the manufacturers have products at the moment. Going directly to a manufacturer which has products set up does work, Eg https://finneyswoodfinishes.co.uk/products.php?man=Sikkens

In includes.php I have this: $seomanufacturerpattern="/brands/%s";

In .htacess I have this
RewriteRule ^manufacturer/([^/.]*)/?$ /products.php?man=$1 [QSA,nc,L,B]
RewriteRule ^brands/([^/.]*)/?$ /products.php?man=$1 [QSA,nc,L,B]

After a bit of experimenting, I find that I can fix the problem by going to the link like this:
https://finneyswoodfinishes.co.uk/categories.php?man=all

But I have definitely not changed .htacess so thought I'd check before changing it.

Any suggestions, please?

Thank you
Ellen




Edited by - EllenD on 04/05/2024 02:37:43

Vince
Administrator

42472 Posts

Posted - 04/08/2024 :  03:49:32  
Hi Ellen
Could you try adding this rule to your .htaccess file...

RewriteRule ^brands/?$ /categories.php?man=all [QSA,nc,L,B]

Vince

Click Here for Shopping Cart Software
Click Here to sign up for our newsletter
Click Here for the latest updater

EllenD
Advanced Member

United Kingdom
424 Posts

Posted - 04/08/2024 :  08:15:59  
Hi Vince,
Thank you for your reply. I have added that line to .htaccess but still got the same result (even after clearing browser cache). My .htaccess now looks like this, which seems a bit of a mix between 'Manufacturer' and 'Brands', although I hadn't changed it and was working previously.

RewriteRule ^(.*)\.html$ $1.php [R=301]
RewriteRule ^wood-finishing/([^/.]*)/?$ /categories.php?cat=$1 [QSA,nc,L,B]
RewriteRule ^products/([^/.]*)/?$ /products.php?cat=$1 [QSA,nc,L,B]
RewriteRule ^manufacturer/([^/.]*)/?$ /products.php?man=$1 [QSA,nc,L,B]
RewriteRule ^brands/([^/.]*)/?$ /products.php?man=$1 [QSA,nc,L,B]
RewriteRule ^brands/?$ /categories.php?man=all [QSA,nc,L,B]
RewriteRule ^([^/.]+)$ proddetail.php?prod=$1 [QSA,nc,L,B]

Thanks
Ellen

EllenD
Advanced Member

United Kingdom
424 Posts

Posted - 04/12/2024 :  02:00:57  
Hi Vince,

Any further suggestions on this please? Still not working. It's odd this was working previously, so I can only assume the v7.7.4 update could be the reason. The issue is still as described in my first post.

Is anyone else seeing this issue?

Thanks
Ellen

Vince
Administrator

42472 Posts

Posted - 04/12/2024 :  04:17:04  
Hi Ellen
Sorry I missed that but I think you just need to reverse the order of these two...

RewriteRule ^brands/([^/.]*)/?$ /products.php?man=$1 [QSA,nc,L,B]
RewriteRule ^brands/?$ /categories.php?man=all [QSA,nc,L,B]

...so they are like this...

RewriteRule ^brands/?$ /categories.php?man=all [QSA,nc,L,B]
RewriteRule ^brands/([^/.]*)/?$ /products.php?man=$1 [QSA,nc,L,B]

Vince

Click Here for Shopping Cart Software
Click Here to sign up for our newsletter
Click Here for the latest updater

EllenD
Advanced Member

United Kingdom
424 Posts

Posted - 04/12/2024 :  04:31:12  
Success! Thank you very much for your help Vince
  « Topic »  
Jump To:
Shopping Cart Software Forum for Ecommerce Templates © 2002-2022 ecommercetemplates.com
This page was generated in 0.03 seconds. Snitz Forums 2000