For your information, seems now works adding this rules as the first rules ...
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !^/(gb|es|ca|fr)/ [NC]
RewriteRule . / [R,L]
Missatge de Frank Gingras del dia dj., 20 d’abr.
2023 a les 16:12:
>
>
The best way to tackle this complex set of rules is to use your development
server, clone the directives, comment out everything and uncomment a few
rules at a time.
While you do this, see if you still have a loop (test with curl, not a
browser), examine the log entries, and then uncomment another
I would start with the rewrite log in your development environment, if you
can't change the configuration on the live server.
I would also look to replace this entire mess with a FallbackResource
directive.
On Tue, Apr 18, 2023 at 6:32 AM Marc Serra wrote:
> Hi,
>
> A few weeks ago we renewed o
Hi,
A few weeks ago we renewed our prestashop website.
One of the new features is the support for multiple languages.
A typical home URL are...
https://www.domain.tld/gb/ for english
https://www.domain.tld/es/ for spanish
etc.
A typical product URL are...
https://www.domain.tld/gb/PRODUCT_CATEG
I have the following config:
VirtualDocumentRoot
/usr/local/www/vhosts-test/%-2.0.%-1/htdocs
VirtualScriptAlias
/usr/local/www/vhosts-test/%-2.0.%-1/cgi-bin
RewriteEngine On
RewriteBase /
# Redirect .example.com/ to
www.example.com//
# Skip rewrite if no hostname, if the requested
subdomain is