Last update at :2024-02-13,Edit by888u
Today many friends asked about Krypt’s free space selection automatic 301 to HTTPS function in the panel. The blogger also discovered this situation. I don’t know if it is because he didn’t pay. Anyway, that box cannot be selected. But we can use htaccess files to automatically jump to HTTPS. This is very simple, as long as we add two lines of code, it can be achieved. Jump to HTTPS tutorial Open files in the menu, and then click on the httpdos folder. You can see the htaccess file inside, as shown below. Click the file directly to open it. The rules in the original document are as follows:
#BEGIN WordPress RewriteEngineOn RewriteBase/ RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ./index.php [L] #END WordPressThe following is the modified content. You can just copy it. After the modification, click OK below to save it. Then you can open your domain name and jump to HTTPS perfectly.
#BEGIN WordPress RewriteEngineOn RewriteBase/ RewriteCond %{SERVER_PORT} !^443$ RewriteRule ^.*$ https://%{SERVER_NAME}%{REQUEST_URI} [L,R=301] RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ./index.php [L] #END WordPressRecommended site searches: icp filing, Ministry of Industry and Information Technology filing, Shanghai virtual host, IP segment query, server rental price, US PHP space, filing query, website IP query, vip domain name, .cn domain name registration,
发表评论