GGANG wrote:.htaccess file difference from previous version.
Very much so! We removed a lot of junk, and included only stuff which is important for X3. The new .htaccess file will be maintained here:
https://gist.github.com/mjau-mjau/48cc0 ... 337e5ad986
In the .htaccess file, we have a link to "additional rules":
https://github.com/h5bp/server-configs- ... /.htaccess
As recommended from the popular HTML5 boilerplate .haccess:
# Option 1: rewrite www.example.com → example.com
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{HTTPS} !=on
RewriteCond %{HTTP_HOST} ^www\.(.+)$ [NC]
RewriteRule ^ %{ENV:PROTO}://%1%{REQUEST_URI} [R=301,L]
</IfModule>
If you are using Cloudflare, and have page-rules available, I would recommend doing it from there instead. The benefit is that the redirects will happen faster from Cloudflare's Edge servers, before the request even hits your server:
GGANG wrote:But I already upgrade by delete X3 core folders and files. Everything works fine.
Nice! Since we moved the /_cache directory in new release, I am trying to implement an auto-move/convert for cached pages/images. It's not really a problem if you start with a new empty /_cache folder, as it will populate quickly anyway.
GGANG wrote:And New Installation Super Fast! I love it. :heart_eyes:
:clap: I think this is a great feature also. Makes it really fast and painless to install a new X3 website! I really hated having to download ZIP, unpack locally, and then upload all files by FTP, which is really slow and prone to errors.
I am trying to build an x3_updater.php also, but this is a bit more complicated.