AbanteCart Community

Shopping Cart Operations => Support => General Support => Topic started by: jimcooncat on June 20, 2021, 06:27:41 AM

Title: SEO URLs does not work
Post by: jimcooncat on June 20, 2021, 06:27:41 AM
I have recently migrated to a new host, installing a fresh AbanteCart 1.3.0.1 and upgrading to PHP 8.0. I had a few issues which I have corrected, but one I can't shake is an intermittent warning that "SEO URLs does not work", and find that sometimes the URL will be expressed in the SEO format, and sometimes similar to "... index.php?rt=product/product&product_id=387".

I don't see anything in error.txt that suggests a relation to this problem. Where can I look for clues, please?

I run Apache2 version 2.4.48 and mod_rewrite appears to work correctly. I have .htaccess in place and works correctly for rewriting http to https URLs. My Apache configuration file for the site has:

     <Directory /var/www/screaminmimisperfectpickins.com/public_html/>
        Options +FollowSymlinks
        AllowOverride All
        Require all granted
     </Directory>

Title: Re: SEO URLs does not work
Post by: Basara on June 21, 2021, 01:06:58 AM
that sometimes the URL will be expressed in the SEO format, and sometimes similar to "... index.php?rt=product/product&product_id=387".

Hello. If your product has an empty SEO Key that URLs will be like index.php?
https://abantecart.atlassian.net/wiki/spaces/AD/pages/24313962/Manage+SEO+URLs#ManageSEOURLs-Toadd%2Feditseokeywordforproducts
Title: Re: SEO URLs does not work
Post by: abolabo on June 21, 2021, 03:22:32 AM
that sometimes the URL will be expressed in the SEO format, and sometimes similar to "... index.php?rt=product/product&product_id=387".

Hello. If your product has an empty SEO Key that URLs will be like index.php?
https://abantecart.atlassian.net/wiki/spaces/AD/pages/24313962/Manage+SEO+URLs#ManageSEOURLs-Toadd%2Feditseokeywordforproducts

hi.
To solve issue be sure that your rule for redirecting from http to https is not a last.

Rules for URL seo rewrites works to adding __route__ parameter into the $_GET predefined array.
You can open controller storefront/controller/common/seo_url.php and check if this parameter there via
Code: [Select]
var_dump($_GET); exit;