Jump to content

Christophe

Members
  • Posts

    649
  • Joined

  • Last visited

Everything posted by Christophe

  1. Is someone already using a version with always one redirect only? I don't mind if it's not generic and I have to specify the domain name. PageSpeed Insights is not "happy"... not only with this last website. Also, it seems, with the ones where I just uncommented Processwire's .htaccess rules. Normally google will only index my preferred url. But in case people type it (or it is written) a certain way. Something that just translates : if it starts with http://domainname.tld make it "redirect" to/start with https://www.domainname.tld or if it starts with http://www.domainname.tld ... to https://www.domainname.tld or if it starts with https://domainname.tld ... to https://www.domainname.tld I don't know how/if using [OR] would work. (And eventually the place(s) where it's best to put/keep it in the .htaccess file, for no conflicts, or for performance reasons.) Thank you in advance!
  2. Solution, tested and given by the web hoster, which works. I've just added it (without RewriteEngine On as it is already present) as one block between # 13. and # 14. RewriteEngine On RewriteCond %{HTTP:X-Forwarded-Proto} !https RewriteCond %{HTTPS} off # First rewrite to HTTPS: # Don't put www. here. If it is already there it will be included, if not # the subsequent rule will catch it. RewriteRule .* https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] # Now, rewrite any request to the wrong domain to use www. # [NC] is a case-insensitive match RewriteCond %{HTTP_HOST} !^www\. [NC] RewriteRule .* https://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301] The web hoster couldn't understand at one point why it was not working. They were Web4all, now they are Yulpa. Something I've found today that could be (one of) the reason(s):
  3. @cgohio Yes, it seems to be hardcoded in a template file. Same for the alt texts and the paragraph text also. Not the best for you of course, if you intend to change them from time to time. So you currently need (s)ftp access from your web host in order to modify the file(s). Perhaps it would be better to make them all manageable from the admin (and also to add the option of having a paragraph under the right section image(s)).
  4. For Ubuntu and Linux Mint, the new folder is /var/www/html (and not /var/www anymore), as you might know. Could it be related to your issue in a way or another?
  5. @Mike Rockett With your code, everything is redirected to https://www.www.domainname.tld @gurkendoktor I have the certificate for both: I have the green lock for both on Chromium and Firefox. I have already tried RewriteRule ^ https://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301] And again now. Still the problem. I'm not the only one wanting to redirect everything to https://www. and having this issue, am I? @rick I'm waiting for an answer from the registrar. It's the first time with this particular combination of registrar and website hoster. (And sometimes it's the same one.)
  6. @rick It seems that I don't have any other solution than doing it at that level. I've also posted a second message on the hoster's forum in case, as the first answer there wasn't helpful at all. The domain name is hosted at another hoster, so I guess I have to ask it there, in my particular case. I have kept the webmail with the registrar (gandi). Let's Encrypt is activated at the website hosting.
  7. In Firefox, I also have: The page isn’t redirecting properly Firefox has detected that the server is redirecting the request for this address in a way that will never complete. This problem can sometimes be caused by disabling or refusing to accept cookies. I test and clear the cache in at least 3 browsers: chromium, firefox, and opera. It's even when not logged in. I've cleared the cookies this time (there was at least wire_challenge). I haven't seen wire_challenges in the cookies' list for the moment. @Robin S Of course, I've already tried with One and Two, and many other things from the Internet. I've tested with RewriteBase / activated also. With One and Two enabled, I have: the error message, http://domainname.tld redirected to https://domainname.tld http://www.domainname.tld redirected to https://www.domainname.tld https://domainname.tld NOT redirected to https://www.domainname.tld Let's Encrypt is activated by the hoster.
  8. Hello, I really can't manage to redirect: http://domainname.tld and http://www.domainname.tld to https://www.domainname.tld https://domainname.tld to https://www.domainname.tld I've searched on the Forums via Google, directly on Google... I can't find a working solution for the moment. There is always something not working. ERR_TOO_MANY_REDIRECTS, etc.
  9. http://modules.processwire.com/search/?q=backup Edit 2: moderators, please remove my post. Thanks in advance
  10. Hi, I made one with (The) Gimp once but it wasn't responsive. You can find solutions like this one, for example, via Google with the good keywords: http://mattstow.com/experiment/responsive-image-maps/rwd-image-maps.html. Then it should just be a matter of integrating it in a template file.
  11. I might take a closer look at https://www.myresponsee.com/ and https://groundworkcss.github.io/. Edit: there are so many of them, like http://ink.sapo.pt/ also. I'm going to concentrate a bit on Responsee 4.
  12. I am curious to see ProcessWire websites using Pocketgrid. In order to study their source codes, to see what is used to create menus, what (other) librairies are used to create slideshows, lightboxes... and if they use Normalize.css, for example, and other things. NB: not sure this sub-forum is the best place to create this topic...
  13. When having a multilingual website, and adding French as default with the fr title, and English as en with the en title, if the superuser user has its language set to English, everything is apparently alright. But if I set the superuser user's language to French, when going to Admin > Setup > Languages (translated in French of course), I see Administration > Configuration > Langues > fr instead of Administration > Configuration > Langues > en. Is it "normal"? Do you have this too? Is it because the default language is French? Just curious. I don't remember having this on a multilingual website with English as default, but I could be wrong. ProcessWire 3.0.60 (but also on older versions) NB: by the way, I had server locale warnings for the first time I think, and on my localhost/desktop, I was able to make them disappear by adding en_EN in the backend on the English page, after clicking on the links under the warnings. I then removed it, leaving everything not translated again.
  14. No news from PM(s) so I'm posting here . There is at least a difference between the demo and the profile. The demo has class="uk-width-2-3@m" and the profile has class="uk-width-expand". You can see the visual difference when you deactivate Javascript (in Firefox for example). Without Javascript disabled, you can, sometimes, notice the (loading) difference when the content is not cached (first visit, and/or other reasons). It generates a little "bouncing" occasionally/in some cases.
  15. Hi, You could, for example, have a page - child of the homepage - named Tools (hidden) that has a child named Custom blocks or General blocks (hidden?). Custom blocks or General blocks would have children. One of them would be your reusable block (hidden?). They will need a template (with the fields you want), but not a template file. Where you want to insert the text, you could have something like: <?=$pages->get('/tools/general-blocks/your-block/')->body?> or <?=$pages->get(idofyourblock)->body?> id that you can find in Your Block page if you have the following in /site/config.php: $config->debug = true; NB: answered too late...
  16. Some information before more advanced users help you. For better researches, in Google you can use, for example : site:processwire.com/api "keyword(s)" You can do the same with /talk, /blog... instead of /api. With quotes of without them, with AND, OR, -... also of course. https://processwire.com/api/ref/page/url/ (there is a language option) https://processwire.com/api/ref/page/#pw-methods-languages If I understood correctly (also from forum(s) posts), wire must or should be used from inside a module: https://processwire.com/api/ref/wire/ You can normally use wire('page')->something, wire('languages')->something... There is an API helper for languages.
  17. Some more avanced users will certainly help you. I've never used it. I've just installed it once (perhaps?) to try/test it. Just for information: And you perhaps have to give the good permission(s) for guest in the Access tab of the relevant template used by posts (and perhaps also of the template of their parent page). And/or give a permission(s) related to the blog for the guest role (in the guest role page). Sorry I'm not able to help more. NB: in the new Regular profile (module) there is also an example of a blog instance.
  18. Hello, What version of ProcessWire and what admin theme (Default, Reno, new UIkit 3 one...) are you using? Isn't there a View tab/link that enables you to (pre)view the post/page even when it's unpublished? You normally have options on how to open the "view".
  19. Do you have $config->debug = true; in /site/config.php and/or TracyDebugger installed in order to help you? What about using data-fancybox='images-single' instead of data-fancybox="images-single"? galerie is a simple image field, isn't it? Isn't the img tag missing? Shouldn't it be something more or less like: <?php foreach($page->galerie as $image) { echo "<a href='{$image->url}' title='{$image->description}' data-fancybox='images-single'>"; echo "<img src='{$thumbnail->url}' alt='{$image->description}' title='{$image->description}' />"; echo "</a>"; } ?> But you could also use $thumbnail->description. I guess you have defined $thumbnail... (NB: not sure the {} are needed in this case as there is only one -> used.)
  20. By default PHP's bundled GD 2 library is used. If you're using a recent ProcessWire 3 version, ImageMagick is also supported (if you can have it installed on your server of course). Perhaps you could have better results. https://processwire.com/blog/posts/processwire-3.0.10-expands-image-resize-options/ NB: in /wire/config.php you can also see some settings, copy them to /site/config.php and modify them...
  21. Hello, A more advanced user will certainly help you. But this module by @tpr perhaps already allows it: Which version of ProcessWire are you using? (Have you tried with a css rule added if the admin user is not a superuser? Or do you prefer a non-css solution - because it is not enough?)
  22. You could hide the children/child pages and use the include=hidden selector: children("include=hidden") You could use http://modules.processwire.com/modules/batch-child-editor/ (or http://modules.processwire.com/modules/process-batcher/) to hide them quickly. If needed, you could create a checkbox field named redirect_to_the_parent_page, redirectToTheParentPage, parent_redirect, parent_page_redirect or whatever, add it to the template of the children pages, and add something like this to the bottom of the children pages template file (I have never used it but have just converted it from the code in the NB:, so I haven't tested): <?php if($page->parent_redirect) $session->redirect($page->parent()->url); // Parent redirect if the checkbox is checked ?> If needed, you could perhaps also use something like (haven't tested): <?php if($page("template=children_template")) $session->redirect($page->parent()->url); ?> <Last edit>: I guess <?php $session->redirect($page->parent()->url); ?> // I can't find the code button... would be enough if you put it in the childen pages template file. </Last edit> NB: sometimes I use <?php if($page->first_child_redirect) $session->redirect($page->child()->url); // First child redirect if the checkbox is checked ?> in a parent template file. PS: you also have http://modules.processwire.com/modules/process-jumplinks/, in case.
  23. Try with TinyJPG... NB: posting the images on the Forums compresses them, doesn't it? PS: I use more TinyPNG than TinyJPG.
  24. Hello, You can add the Italian language pack as the "default" one, then create another English language without having to install any language pack.
  25. Hello, Just to be sure, did you read this?: https://processwire.com/api/modules/multi-site-support/ Can you give more details on your installation so that you can receive better help? But perhaps the Warning message will be enough for the experts...
×
×
  • Create New...