Re: [users@httpd] Help with mod_rewrite

2023-05-09 Thread Marc Serra
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: > >

Re: [users@httpd] Help with mod_rewrite

2023-04-20 Thread Frank Gingras
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

Re: [users@httpd] Help with mod_rewrite

2023-04-19 Thread Frank Gingras
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

[users@httpd] Help with mod_rewrite

2023-04-18 Thread Marc Serra
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

[users@httpd] Help with mod_rewrite and regex's

2005-05-23 Thread o o
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