Jump to content

franciccio-ITALIANO

Members
  • Posts

    202
  • Joined

  • Last visited

Everything posted by franciccio-ITALIANO

  1. Hi, I normally develope html-css of my site on my local pc in any folders, then I move all online by ftp. But by this method I must change all img-css-js addresses of all html file every time! It's is annoying. Is there a way to do it automatically? Exist a program for to develope html-css of the site in local, and moved all online by ftp WITHOUT MAKING CHANGES? I would like to have a perfect copy of site in local, immediately transferable online by ftp.... It's possibile? How?
  2. Hi, thanks to this google service we can measure the speed of the site: https://www.thinkwithgoogle.com/intl/it-it/feature/testmysite Now, I test my site and many processwire sites, ok, but is there a processwire site where the PRO CACHE plug-in is installed, to test its actual improvements? Normally, the speed of the processwire is 1.9 s (with 4g). If I install a module like MarkupSiteMap, my processwire speed is 2.2 seconds (with 4g). If I install a module like AllMinify, my processwire speed is 3.2 seconds (with 4g). If I uninstall processwire and I create a static site, my site speed is 1.4 s (with 4g). If I had a site where PRO CACHE is definitely installed, I could see the progress before eventually buying the module ... Thank you...
  3. Yes I develop site locally and moved it online. Thanks! ?
  4. Salve, oggi ho ricevuto questo consigli su pw pannello: Non riconosciuto host HTTP: 'permaculturaorganica.info' - Aggiorna il tuo $ config-> httpHosts impostazione /site/config.php - read more Ma io non faccio nulla. Perché è successo? E che cosa devo fare?
  5. I solved with this module: MarkupSitemapXML http://modules.processwire.com/modules/markup-sitemap-xml/ The address is same of the official pw: https://www.permaculturaorganica.info/sitemap and google webmaster is happy with https://www.permaculturaorganica.info/sitemap.xml ?
  6. Ciao, oggi installo seomaestro e abilito la sitemap, ma il webmaster di Google non lo vede: my site is: https://www.permaculturaorganica.info Sitemap official: https://www.permaculturaorganica.info/sitemap Sitemap Seomaestro: https://www.permaculturaorganica.info/sitemap.sm.xml but google webmaster don't accept it...
  7. Ok thanks! But seomaestro SeoMaestro https://modules.processwire.com/modules/seo-maestro/ is usefull for page metadescription and tags page, too?
  8. Hi, I linked my sitemap address (https://permaculturaorganica.info/sitemap/) on google webmaster, but it say me that the format is wrong because it's html format. So, how work well with google webmaster? https://search.google.com/search-console/ I think must change format and to have xml format, but how? Thanks
  9. Hi, we can choose the "headline" and "title" and "summery" in panel page of processwire, but we can't write the "metadecriptions" and "tags". I can write mdescropt and tags in templates, but I've same templates for many articles... so, how I can change mdescription and tags? Thanks...
  10. Hi, for the images I must change <img style="float:right;" class="attention-img-popup" src="assets/img/attention1.png" alt=""> with: <img style="float:right;" class="attention-img-popup" src="$page->images" alt=""> For the text: <p class="text">My text</p> with: <p class="text">$page->body</p> It's right? Where I find the code for video, gallery image etc etc?
  11. So, I uninstall and reinstall the site. I discover the problem. I try to modify and remove i 2 "#" by pannell hosting, NOT BY FILEZILLA. Now, my site work very well with certificate https://. My personal lesson: NOT USE FILEZILLA FOR TO EDIT FILES!
  12. In my hosting pannell I haven't change anything because the server staff tell me that the application of ssl certificate was AUTOMATIC. Infact it work very well in a subdomain wordpress, and I don't do absolutely nothing. But the ssl certificate Lets Encript is turn ON on my site from 9 months. Yesterday I think about application it in first major principal domain processwire and so I ask informations here. I open .htaccess by FILEZILLA and I remove 2 "#". Stop. All distruct. Ok, I put back the 2 "#" and always all smash. I haven't change anything neither in processwir panel. Anyway, thank you very much for your help!
  13. ok, but on github there is a htaccess.txt file text, I must change the extension, no? I delete old file and create a new with name ".htaccess", then I cut-copy the body of htaccess on gothub, but not work anything. It is a drama unsolvable. So, I must disinstall all the site. I suggest that all readers never touch the processwire htaccess file again. It is not a normal file. You can't change a comma and put it back, because even if you put it back where it was, it's like you've written something completely new and different. Madness.
  14. Certo, grazie. Una pagina del mio sito: http://permaculturaorganica.info/manifesto-sovranista/ I think that now I must disinstall all and reinstall... and forgo renounce https because the htaccess file is untouchable, it smash immediately...
  15. But it's wrong in anything because my site don't work... Help meeeeeeeeee pleaseeeeeeeeeeeeee
  16. My htaccess file is this: ################################################################################################# # START PROCESSWIRE HTACCESS DIRECTIVES # @version 3.0 # @indexVersion 300 ################################################################################################# # ----------------------------------------------------------------------------------------------- # 1. Don't show directory indexes, but do follow symbolic links # 500 NOTE: Some cloud hosting companies don't allow +SymLinksIfOwnerMatch. # Uncomment +SymLinksifOwnerMatch and comment +SymLinksIfOwnerMatch if you have 500 errors. # If that doesn't resolve the error, then set it back to +SymLinksIfOwnerMatch. # ----------------------------------------------------------------------------------------------- Options -Indexes Options +SymLinksIfOwnerMatch # Options +SymLinksifOwnerMatch # ----------------------------------------------------------------------------------------------- # 2. Let ProcessWire handle 404s # ----------------------------------------------------------------------------------------------- ErrorDocument 404 /index.php # ----------------------------------------------------------------------------------------------- # 3. Handle request for missing favicon.ico/robots.txt files (no ending quote for Apache 1.3) # ----------------------------------------------------------------------------------------------- <Files favicon.ico> ErrorDocument 404 "The requested file favicon.ico was not found. </Files> <Files robots.txt> ErrorDocument 404 "The requested file robots.txt was not found. </Files> # ----------------------------------------------------------------------------------------------- # 4. Protect from XSS with Apache headers # ----------------------------------------------------------------------------------------------- <IfModule mod_headers.c> # prevent site from being loaded in an iframe on another site # you will need to remove this one if you want to allow external iframes Header always append X-Frame-Options SAMEORIGIN # to prevent cross site scripting (IE8+ proprietary) Header set X-XSS-Protection "1; mode=block" # prevent mime-based attacks via content sniffing (IE+Chrome) # Header set X-Content-Type-Options "nosniff" </IfModule> # ----------------------------------------------------------------------------------------------- # 5. Protect ProcessWire system files # ----------------------------------------------------------------------------------------------- <FilesMatch "\.(inc|info|info\.json|module|sh|sql)$|^\..*$|composer\.(json|lock)$"> <IfModule mod_authz_core.c> Require all denied </IfModule> <IfModule !mod_authz_core.c> Order allow,deny </IfModule> </FilesMatch> # ----------------------------------------------------------------------------------------------- # 6. Override a few PHP settings that can't be changed at runtime (not required) # 500 NOTE: Try commenting out this entire section below if getting Apache 500 errors. # ----------------------------------------------------------------------------------------------- <IfModule mod_php5.c> php_flag magic_quotes_gpc off php_flag magic_quotes_sybase off php_flag register_globals off </IfModule> # ----------------------------------------------------------------------------------------------- # 7. Set default directory index files # ----------------------------------------------------------------------------------------------- DirectoryIndex index.php index.html index.htm # ----------------------------------------------------------------------------------------------- # 8. ProcessWire requires mod_rewrite # ----------------------------------------------------------------------------------------------- <IfModule mod_rewrite.c> RewriteEngine On AddDefaultCharset UTF-8 # ----------------------------------------------------------------------------------------------- # 9. If you only want to allow HTTPS, uncomment the RewriteCond and RewriteRule lines below. # ----------------------------------------------------------------------------------------------- # RewriteCond %{HTTPS} off # RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] # If using an AWS load balancer, use these two lines below instead of those above: # RewriteCond %{HTTP:X-Forwarded-Proto} =http # RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] # ----------------------------------------------------------------------------------------------- # 10. Set an environment variable so the installer can detect that mod_rewrite is active. # Note that some web hosts don't support this. If you get a 500 error, you might try # commenting out this SetEnv line below. # ----------------------------------------------------------------------------------------------- <IfModule mod_env.c> SetEnv HTTP_MOD_REWRITE On </IfModule> # ----------------------------------------------------------------------------------------------- # 11. OPTIONAL: Set a rewrite base if rewrites aren't working properly on your server. # And if your site directory starts with a "~" you will most likely have to use this. # ----------------------------------------------------------------------------------------------- # RewriteBase / # RewriteBase /pw/ # RewriteBase /~user/ # ----------------------------------------------------------------------------------------------- # 12. Access Restrictions: Keep web users out of dirs that begin with a period, # but let services like Lets Encrypt use the webroot authentication method. # ----------------------------------------------------------------------------------------------- RewriteRule "(^|/)\.(?!well-known)" - [F] # ----------------------------------------------------------------------------------------------- # 13. OPTIONAL: Redirect users to the 'www.' version of the site (uncomment to enable). # For example: http://processwire.com/ would be redirected to http://www.processwire.com/ # ----------------------------------------------------------------------------------------------- # RewriteCond %{HTTP_HOST} !^www\. [NC] # RewriteRule ^ http://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301] # ----------------------------------------------------------------------------------------------- # 14. OPTIONAL: Send URLs with non-ASCII name-format characters to 404 page (optimization) # ----------------------------------------------------------------------------------------------- # RewriteCond %{REQUEST_URI} "[^-_.a-zA-Z0-9/~]" # RewriteCond %{REQUEST_FILENAME} !-f # RewriteCond %{REQUEST_FILENAME} !-d # RewriteRule ^(.*)$ index.php?it=/http404/ [L,QSA] # ----------------------------------------------------------------------------------------------- # 15. Access Restrictions: Protect ProcessWire system files # ----------------------------------------------------------------------------------------------- # Allow screenshot files (for install.php only: this 1 line below may be removed after install) RewriteCond %{REQUEST_URI} !(^|/)site-[^/]+/install/[^/]+\.(jpg|jpeg|png|gif)$ # Block access to any htaccess files RewriteCond %{REQUEST_URI} (^|/)\.htaccess$ [NC,OR] # Block access to protected assets directories RewriteCond %{REQUEST_URI} (^|/)(site|site-[^/]+)/assets/(cache|logs|backups|sessions|config|install|tmp)($|/.*$) [OR] # Block acceess to the /site/install/ directory RewriteCond %{REQUEST_URI} (^|/)(site|site-[^/]+)/install($|/.*$) [OR] # Block dirs in /site/assets/ dirs that start with a hyphen RewriteCond %{REQUEST_URI} (^|/)(site|site-[^/]+)/assets.*/-.+/.* [OR] # Block access to /wire/config.php, /site/config.php, /site/config-dev.php, and /wire/index.config.php RewriteCond %{REQUEST_URI} (^|/)(wire|site|site-[^/]+)/(config|index\.config|config-dev)\.php$ [OR] # Block access to any PHP-based files in /templates-admin/ RewriteCond %{REQUEST_URI} (^|/)(wire|site|site-[^/]+)/templates-admin($|/|/.*\.(php|html?|tpl|inc))$ [OR] # Block access to any PHP or markup files in /site/templates/ RewriteCond %{REQUEST_URI} (^|/)(site|site-[^/]+)/templates($|/|/.*\.(php|html?|tpl|inc))$ [OR] # Block access to any PHP files in /site/assets/ RewriteCond %{REQUEST_URI} (^|/)(site|site-[^/]+)/assets($|/|/.*\.php)$ [OR] # Block access to any PHP files in core or core module directories RewriteCond %{REQUEST_URI} (^|/)wire/(core|modules)/.*\.(php|inc|tpl|module|info\.json)$ [OR] # Block access to any PHP files in /site/modules/ RewriteCond %{REQUEST_URI} (^|/)(site|site-[^/]+)/modules/.*\.(php|inc|tpl|module|info\.json)$ [OR] # Block access to any software identifying txt files RewriteCond %{REQUEST_URI} (^|/)(COPYRIGHT|INSTALL|README|htaccess)\.(txt|md|textile)$ [OR] # Block all http access to the default/uninstalled site-default directory RewriteCond %{REQUEST_URI} (^|/)site-default/ # If any conditions above match, issue a 403 forbidden RewriteRule ^.*$ - [F,L] # PW-PAGENAME # ----------------------------------------------------------------------------------------------- # 16a. Ensure that the URL follows the name-format specification required by PW # See also directive 16b below, you should choose and use either 16a or 16b. # ----------------------------------------------------------------------------------------------- RewriteCond %{REQUEST_URI} "^/~?[-_.a-zA-Z0-9/]*$" # ----------------------------------------------------------------------------------------------- # 16b. Alternative name-format specification for UTF8 page name support. # If used, comment out section 16a above and uncomment the directive below. If you have updated # your $config->pageNameWhitelist make the characters below consistent with that. # ----------------------------------------------------------------------------------------------- # RewriteCond %{REQUEST_URI} "^/~?[-_./a-zA-Z0-9æåäßöüđжхцчшщюяàáâèéëêěìíïîõòóôøùúûůñçčćďĺľńňŕřšťýžабвгдеёзийклмнопрстуфыэęąśłżź]*$" # END-PW-PAGENAME # ----------------------------------------------------------------------------------------------- # 17. If the request is for a file or directory that physically exists on the server, # then don't give control to ProcessWire, and instead load the file # ----------------------------------------------------------------------------------------------- RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !(favicon\.ico|robots\.txt) # ----------------------------------------------------------------------------------------------- # 18. OPTIONAL: Prevent ProcessWire from attempting to serve images or anything in /site/assets/. # Both of these lines are optional, but can help to reduce server load. However, they # are not compatible with the $config->pagefileSecure option (if enabled) and they # may produce an Apache 404 rather than your regular 404. You may uncomment the two lines # below if you don't need to use the $config->pagefileSecure option. After uncommenting, test # a URL like domain.com/site/assets/files/test.jpg to make sure you are getting a 404 and not # your homepage. If getting your homepage, then either: do not use this option, or comment out # section #2 above that makes ProcessWire the 404 handler. # ----------------------------------------------------------------------------------------------- # RewriteCond %{REQUEST_FILENAME} !\.(jpg|jpeg|gif|png|ico)$ [NC] # RewriteCond %{REQUEST_FILENAME} !(^|/)site/assets/ # ----------------------------------------------------------------------------------------------- # 19. Pass control to ProcessWire if all the above directives allow us to this point. # For regular VirtualHosts (most installs) # ----------------------------------------------------------------------------------------------- RewriteRule ^(.*)$ index.php?it=$1 [L,QSA] # ----------------------------------------------------------------------------------------------- # 20. If using VirtualDocumentRoot (500 NOTE): comment out the one above and use this one instead # ----------------------------------------------------------------------------------------------- # RewriteRule ^(.*)$ /index.php?it=$1 [L,QSA] </IfModule> ################################################################################################# # END PROCESSWIRE HTACCESS DIRECTIVES ################################################################################################# # SP BEGIN php handler <IfModule mod_fcgid.c> AddHandler fcgid-script .php .php5 .php7 .phtml FcgidWrapper /usr/local/cpanel/cgi-sys/sp-ea-php56 .php FcgidWrapper /usr/local/cpanel/cgi-sys/sp-ea-php56 .php5 FcgidWrapper /usr/local/cpanel/cgi-sys/sp-ea-php56 .php7 FcgidWrapper /usr/local/cpanel/cgi-sys/sp-ea-php56 .phtml </IfModule> # SP END php handler
  17. Hi, I remove "#" and now the site is "INTERNAL SERVER ERROR - Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request" RewriteCond %{HTTPS} off RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] So, I re-put # # RewriteCond %{HTTPS} off # RewriteCond %{HTTPS} off RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] BUT NOW THE SITE IS ALWAYS "INTERNAL SERVER ERROR". All white. It's autodistruct. I don't understand. How can I take the version precedent htpaccess?
  18. Hi, I install processwire by softeiaculos because manually there was any problem. But now the format https:// it's not active. Is an simple http://mysite.com How I can change it? The certificate is installed on server! Thanks...
  19. Ok, so in Linux Server I must add in config.php: /** * Server locale setting * */ setlocale(LC_ALL,'it_IT.UTF-8'); //List installed locales $ locale // Install yours if not on that list $ locale-gen it_IT.UTF-8 but in Windows Server what change?
  20. Must I write adding: /** * Server locale setting * */ setlocale(LC_ALL,'it_US.UTF-8'); ?
  21. Hi, in my installation appear this advice: Note: your current server locale setting isn’t working as expected with the UTF-8 charset and may cause minor issues. Your current locale setting is “C”. Please add this to your /site/config.php file (adjust “en_US.UTF-8” as needed): setlocale(LC_ALL,'en_US.UTF-8'); Now, my config.php file is this: ?php namespace ProcessWire; /** * ProcessWire Configuration File * * Site-specific configuration for ProcessWire * * Please see the file /wire/config.php which contains all configuration options you may * specify here. Simply copy any of the configuration options from that file and paste * them into this file in order to modify them. * * SECURITY NOTICE * In non-dedicated environments, you should lock down the permissions of this file so * that it cannot be seen by other users on the system. For more information, please * see the config.php section at: https://processwire.com/docs/security/file-permissions/ * * This file is licensed under the MIT license * https://processwire.com/about/license/mit/ * * ProcessWire 3.x, Copyright 2016 by Ryan Cramer * https://processwire.com * */ if(!defined("PROCESSWIRE")) die(); /*** SITE CONFIG *************************************************************************/ /** @var Config $config */ /** * Enable debug mode? * * Debug mode causes additional info to appear for use during dev and debugging. * This is almost always recommended for sites in development. However, you should * always have this disabled for live/production sites. * * @var bool * */ $config->debug = false; /** * Prepend template file * * PHP file in /site/templates/ that will be loaded before each page's template file. * Example: _init.php * * @var string * */ $config->prependTemplateFile = '_init.php'; /** * Append template file * * PHP file in /site/templates/ that will be loaded after each page's template file. * Example: _main.php * * @var string * */ $config->appendTemplateFile = '_main.php'; /*** INSTALLER CONFIG ********************************************************************/ /** * Installer: Database Configuration * */ $config->dbHost = 'localhost'; $config->dbName = 'permacul_dbpwire'; $config->dbUser = 'permacul_dbpwire'; $config->dbPass = '9g9p(SF0S!'; $config->dbPort = '3306'; /** * Installer: User Authentication Salt * * Must be retained if you migrate your site from one server to another * */ $config->userAuthSalt = 'edb4de86bb988b98d80e9c223cc944d0'; /** * Installer: File Permission Configuration * */ $config->chmodDir = '0755'; // permission for directories created by ProcessWire $config->chmodFile = '0644'; // permission for files created by ProcessWire /** * Installer: Time zone setting * */ $config->timezone = 'America/New_York'; /** * Installer: Admin theme * */ $config->defaultAdminTheme = 'AdminThemeUikit'; /** * Installer: Unix timestamp of date/time installed * * This is used to detect which when certain behaviors must be backwards compatible. * Please leave this value as-is. * */ $config->installed = 1554197421; /** * Installer: HTTP Hosts Whitelist * */ $config->httpHosts = array('www.permaculturaorganica.info', 'www.www.permaculturaorganica.info'); So, where e what I must change?
  22. Hi pwired, I tryed install pw 3.0.123, the last version; site-blog profile with uikit. The php version is ok. If you tell me what I change, I change. In this moment at public_html folder I haven't any folder installed. Where and how I can change the permiss? ?
  23. Now the error message is: Forbidden You don't have permission to access / on this server. Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.
  24. I contacted the server team, and they explain me that the server is Apache mod_rewrite ON. So, i don't know how do...
×
×
  • Create New...