When building a website, only one of the www domain name and the main domain name without www can be selected as the domain name for public access, and the other domain name can be redirected to 301.stayHostinger virtual host station establishmentAccording to the convention, the www domain name is used as the primary domain name (such as www.vpsss.net), and the domain name without www (vpsss.net) needs 301 redirection to the www domain name (www.vpsss.net).
If you buy the hosting virtual host advanced business package, you will get a free cloudflare network acceleration. Old Wei suggested that you redirect the domain name without www to the www domain name as 301, which has many benefits.
Hostinger virtual host black five maximum discountLong term operation of foreign trade website, suggested by Lao WeiHostinger virtual host。WordPress website cost performance optimization. Foreign trade, B2C/C2C and other websites suggest registering domain names abroad.openNamesilo official website, enter and select in the search box, and then register. Remember to use the discount code to save money.Discount code clickCourse of domain name registration of foreign domain name provider Namesiloobtain. Use the discount code candy to fold up. Purchase of advanced virtual host for 12 months and above, free of chargeOne year COM domain name and free SSL certificate and Cloudflare. About Hostinger:Hostinger topic
1. Set cloudflare DNS address
Click to log in to the host backgroundEnter, if your interface is not Chinese, please switch in the upper right corner of the page, as shown in the following figure:
The above codes must be strictly free of extra spaces, extra characters or missing characters, or they will not take effect.
5. Re login to WordPress website background
At this time, you need to log in to the website background again. Even if you have already logged in, you will automatically exit.
If there is no response after entering the account and password, please go to the hpanel panel [Database Functions]>[phpmyadmin], click the button on the right to enter database management, find wp_options, double-click and modify the domain names of the siteurl and home lines to www domain names.No matter what format the previous url is, it should be modified tohttps://www.vpsss.netThis form.
If you used your domain name/wp login. php to log in, change it to your domain name/wp admin, and vice versa.
Open it with a domain name without www to see if it automatically jumps to the www domain name.At this point, the website background can be opened normally, and then the website foreground page can be checked without any problem. The hosting website does 301 redirect to the www domain name without the www domain name, which is a complete success.
Article name: How Hostinger Virtual Hosting Website Jumps the Main Domain Name to the www Domain Name Article link:https://www.vpsss.net/28135.html Copyright notice: The resources of this website are only for personal learning and exchange, and are not allowed to be reproduced and used for commercial purposes, otherwise, legal issues will be borne by yourself. The copyright of the pictures belongs to their respective creators, and the picture watermark is for the purpose of preventing unscrupulous people from stealing the fruits of labor.