Jump to content

netcarver

PW-Moderators
  • Posts

    2,137
  • Joined

  • Last visited

  • Days Won

    42

Posts posted by netcarver

  1. Is that useragent string a constant across all requests, or just the "amazonbot" part?  Either way, if you have access to WireRequestBlocker from the ProDevTools package, you could target the useragent with a block rule.  If you don't have access to WireRequestBlocker, then an .htaccess rule could be used to reject those requests.  There are some examples here.

  2. Hi @HakeshDigital

    Does it work if you remove, or comment out, the indicated line from your .htaccess file...

    RewriteCond %{REQUEST_URI} ^(.*)/([a-z]{2})$
    RewriteRule ^(.*/)(es|en|it|pt)$ $1$2/ [R=301,L]
    RewriteRule ^(.*/)es$ ^(.*/)es/ [R=301]  ## <<< Remove this line, or comment out with # at the start.
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule (.+(?:es|en|it|pt))$ /$1/ [L,R=301]
    
    RewriteCond %{REQUEST_URI} ^/([a-z]{2})/
    RewriteRule ^ - [E=LANG:%1]
    
    RewriteCond %{ENV:LANG} !^$
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_URI} !(.*)/$
    RewriteRule ^(.*)$ /$1/ [L,R=301]

    ...?
     

  3. Interesting concept.

    I'm with Bernhard when he suggested making the help text fixed in the middle. Half of the time the instructions are upside down (being in the bottom half of the screen) and moving - so hard to read unless you wait for it to make it back up. Could also do with some more contrast for those of us with slightly compromised sight.

    Thanks for sharing though.

    • Like 2
    • Thanks 1
  4. Hi @Greg Lumley

    That's correct - you need to use "db" as the DBHost in the site/config.php file for ddev because MySQL/Maria is running in a separate container called "db" in the ddev stack. Both the webserver container and database container are attached to a dedicated virtual network when you bring up your stack. Docker's DNS resolver automatically makes the internal network IP of the database server available to other containers on the same virtual network using the container name - hence the need for "db" in the config file.

    In docker stacks where both the webserver and MySQL/Maria DB were running in the same container then you could use "127.0.0.1" or "localhost" as the DBHost - but that's not the case for ddev.

  5. Hello Bernhard. Congratulations on your module release. I've just been trying this out in your demo at pagebuilder.baumrock.com. I'm using FireFox as the browser and don't seem to be able to drag-and-drop blocks to change their position in the front end view. Perhaps it's just my install. I'm not seeing any JS errors in the console, but I just can't seem to get this working in FF (all good in Chromium.)

    • Thanks 1
×
×
  • Create New...