Author Topic: SEO URLs does not work  (Read 2289 times)

Offline jimcooncat

  • Newbie
  • *
  • Posts: 23
  • Karma: +3/-0
    • View Profile
SEO URLs does not work
« 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>


Offline Basara

  • Administrator
  • Hero Member
  • *****
  • Posts: 5774
  • Karma: +274/-2
    • View Profile
Re: SEO URLs does not work
« Reply #1 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

Offline abolabo

  • core-developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 2046
  • Karma: +318/-13
  • web for all, all for web!
    • View Profile
    • AbanteCart
Re: SEO URLs does not work
« Reply #2 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;
“No one is useless in this world who lightens the burdens of another.”
― Charles Dickens

 

Powered by SMFPacks Social Login Mod