Jump to content

Christophe

Members
  • Posts

    701
  • Joined

  • Last visited

Everything posted by Christophe

  1. http://zurb.com/responsive CMS sub-link: ProcessWire is missing @Sérgio Jardim [ https://ricardo-vargas.com ] and others, please propose your foundation website there. Some of the other CMSs have a tag but without any website there... or with just one displayed. (By the way, if you click on more than one tag, you always have 0 websites as a result.)
  2. You can change the default option. Admin > Setup > Fields > Edit Field: images Input (tab) Disable multi-language descriptions? By default, descriptions are multi-language when you have Language Support installed. If you want to disable multi-language descriptions, check this box. Disable multi-language descriptions?
  3. First solution for the website at ovh (registar and website hoster). Found this again (and that I had bookmarked it already): https://docs.ovh.com/fr/fr/web/hosting/htaccess-reecriture-url-mod-rewrite/ If not wrong, using this RewriteCond %{SERVER_PORT} 80 RewriteRule ^(.*)$ https://www.domainname.tld/$1 [R=301,L] Then this RewriteCond %{HTTP_HOST} ^domainname.tld$ RewriteRule ^(.*) http://www.domainname.tld/$1 [QSA,L,R=301] I only have a 2 redirect message with PageSpeed Insights - if testing https://domainname.tld If I use this instead RewriteCond %{HTTP_HOST} ^domainname.tld$ RewriteRule ^(.*) https://www.domainname.tld/$1 [QSA,L,R=301] I don't have redirect error messages anymore (4 combinations/variations). I'll (re)check again to see if it was real. And I'll test later if I can easily transform it to use the non-www version. But I'm not sure if I really want the non-www version or not. I'll precise R=301 where there is only R. It's very easy to invert from www to non-www. Apparently no redirect error messages either. So it's ok now for this one website. I would just have to choose between www and non-www. http://www.yes-www.org/ http://www.yes-www.org/why-use-www/ (technical reasons)
  4. @szabesz Of course I tried also with this. Too many redirects error message. This doesn't work for me (at least while testing it with one of the websites). For exemple, http://www is not even redirected to http:// I'm not going to spend more time with this now. Later eventually. I'd like a debugger to exist for this. Perhaps using a security/penetration testing framework(?). Thanks everyone.
  5. @rick I'm talking about 2 different websites that have nothing in common. For each website, the 4 variations of the url point to the same (common) content. I normally can't use sites-available/sites-enabled (only on my local computer(s). Ex-Ubuntu and current Linux Mint Mate user). @szabesz I'll use it eventually and see if it works for me. Edit: it doesn't work (at least for the domain I'm currently working on). https://www.domain.tld is redirected to http://domain.tld. @SiNNuT I think I have it bookmarked and perhaps also downloaded it somewhere. Edit 2: now that I want to use the non-www version, I have to find a way to change the code I was using so that it works... So much time wasted for things that should be easier to do. Edit 3: there seems to be a difference, related to shared cookies, between the www and non-www choices. Edit 4: I'll eventually try again later with other domains. It's not worth it now.
  6. @rick Do you mean that, in general, there are better google results if the non-www version is used as the canonical version? The 2 domain names are quite long, so perhaps this time I should choose the non-www version. Also, I may have less problems/redirects. But in that case, I'll have to (find how to) modify the code already used for both websites. I'll eventually set the ProcessWire templates to https, as I don't have many of them. In which non-secure conf file? Edit: (Not) the ProcessWire generated .htaccess file? I'm using shared hosting. Perhaps at least one is a "virtually"-shared installation. All protocols are pointing to the same website content. For one of the websites, the domain name register and the website hoster are different. Have a nice day/evening! Edit 2: if only we didn't need to redirect anything (at least between www and non-www), but just had to mark one as canonical/main (tag, console...).
  7. Hello @AndZyk, PageSpeed Insights 1) For the website (Yulpa hoster) using the code at With (only) http://domainname.tld, I have: Avoid landing page redirects Your page has 2 redirects. Redirects introduce additional delays before the page can be loaded. Avoid landing page redirects for the following chain of redirected URLs. http://domainname.tld/ https://domainname.tld/ https://www.domainname.tld/ 2) For the website (OVH hoster) using the code from ProcessWire's .htaccess file (# 9 and # 13 uncommented) a) For https://www.domainname.tld/, I have: Avoid landing page redirects Your page has 2 redirects. Redirects introduce additional delays before the page can be loaded. Avoid landing page redirects for the following chain of redirected URLs. https://domainname.tld/ http://www.domainname.tld/ https://www.domainname.tld/ b) For http://domainname.tld/, I have: Avoid landing page redirects Your page has 3 redirects. Redirects introduce additional delays before the page can be loaded. Avoid landing page redirects for the following chain of redirected URLs. http://domainname.tld/ https://domainname.tld/ http://www.domainname.tld/ https://www.domainname.tld/ All this doesn't seem good to me...
  8. 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!
  9. 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):
  10. @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)).
  11. 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?
  12. @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.)
  13. @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.
  14. 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.
  15. 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.
  16. http://modules.processwire.com/search/?q=backup Edit 2: moderators, please remove my post. Thanks in advance
  17. 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.
  18. 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.
  19. 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...
  20. 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.
  21. 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.
  22. 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...
  23. 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.
  24. 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.
  25. 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".
×
×
  • Create New...