Adds to cart then no direction for user

Phoca Cart - complex e-commerce extension
User avatar
landed
Phoca Professional
Phoca Professional
Posts: 168
Joined: 15 Sep 2023, 10:51

Re: Adds to cart then no direction for user

Post by landed »

Ok I checked the console and found the issue. Since a long time for SEO I block index.php so this is redirected.
Removing this it works. Though id like to keep it ideally.

#RewriteCond %{THE_REQUEST} ^[A-Z]{3,}\s/index\.php[/?\s] [NC]
#RewriteRule ^index\.php(.*)$ /$1 [R=301,L]

Image

New question please why don't I get so much detail in this popup as yours earlier.
User avatar
landed
Phoca Professional
Phoca Professional
Posts: 168
Joined: 15 Sep 2023, 10:51

Re: Adds to cart then no direction for user

Post by landed »

AI to the rescue!

# Remove index.php from all URLs except JSON format requests
RewriteCond %{THE_REQUEST} ^[A-Z]{3,}\s/index\.php[/?\s] [NC]
RewriteCond %{QUERY_STRING} !format=json [NC]
RewriteRule ^index\.php(.*)$ /$1 [R=301,L]

Fabulous happiness!
Post Reply