Author Topic: Problems with Trailing Slashes in my shopping cart  (Read 1475 times)

checkerwally

  • Beginner
  • *
  • Posts: 1
  • A beginner
  • Skype Name: checkerwally
Problems with Trailing Slashes in my shopping cart
« on: November 17, 2019, 18:37:09 pm »
Hello everybody,

i have the following instance at work

Joomla! 3.9.13 Stable
PHP-Version: 7.3.6-nmm1
VirtueMart 3.6.8 10197

During SEO activities, i noticed when i set the following entry in the file .htaccess

Activate Trailing Slashes
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*[^/])$ /$1/ [R=301,NC,L]

that i can no longer make changes to the products in the Virtuemart shopping cart afterwards.
If i deactivate the settings, i can then work normally in the shopping cart again.

Is it a wrong entry? I have only found the problem in my shopping cart.

Idea was from
https://www.wicked-software.de/drei-htaccess-regeln-zur-einzigartigen-url

Best Regards
cw

Jörgen

  • Global Moderator
  • Sr. Member
  • *
  • Posts: 3014
    • Kreativ Fotografi
  • VirtueMart Version: 3.4.x
Re: Problems with Trailing Slashes in my shopping cart
« Reply #1 on: November 17, 2019, 19:38:39 pm »
You are trying some thing that s over your head and not something to actually do with VM.

this might give You a clue:

Quote
Je nach Einsatz kann es sein, dass die Trailing Slash Regel noch angepasst werden muss. Für Joomla! CMS Freunde, hier werden Beispielsweise Anfragen per Post an Slash/ URLs gesendet. Eine Weiterleitung verwirft aber die gesendeten POST-Daten und leitet per GET weiter. Deshalb sollte die nachfolgende Regel oberhalb der Traling Slash Regel platziert werden, um POST-Anfragen durch zu lassen.

Jörgen @ Kreativ Fotografi
Joomla 3.9.18
Virtuemart 3.4.x
Olympiantheme Hera (customized)
This reflects current status when viewing old post.