News:

AbanteCart v1.4.2 is released.

Main Menu

Do you like AbanteCart? Please rate AbanteCart or share your experience with other eCommerce entrepreneurs. Go to Softaculous rating page to add your rating or write a review

SEO URLs does not work

Started by jimcooncat, June 20, 2021, 06:27:41 AM

Previous topic - Next topic

jimcooncat

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>


Basara

Quote from: jimcooncat on June 20, 2021, 06:27:41 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

abolabo

Quote from: Basara on June 21, 2021, 01:06:58 AM
Quote from: jimcooncat on June 20, 2021, 06:27:41 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 var_dump($_GET); exit;
"No one is useless in this world who lightens the burdens of another."
― Charles Dickens

Forum Rules Code of conduct
AbanteCart.com 2010 -