Adds to cart then no direction for user

Phoca Cart - complex e-commerce extension
User avatar
landed
Phoca Professional
Phoca Professional
Posts: 171
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: 171
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!
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49005
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Adds to cart then no direction for user

Post by Jan »

OK, thank you for the info.

Jan
If you find Phoca extensions useful, please support the project
Post Reply