RewriteCond %{SERVER_PORT} 80 RewriteRule ^(.*)$ https://blog.siryin.com/ $1 [R=301,L] OK. That's it.. It must be written at the front, otherwise it seems useless... —————————————————————————————————————— Then I flirted with the htaccess file of this blog.. Although I have made a circle, I still don't understand.. But it doesn't matter if it works, does it- Visit any prefix, such as ABC.guoguomiao.com 111.guoguomiao.com, followed by the directory ABC.guoguomiao.com/ml/music Will automatically jump to www.guoguomiao.com.. RewriteEngine On RewriteCond %{HTTP_HOST} !^ www.guoguomiao.com$ [NC] RewriteRule ^(.*)$ http://blog.moe.xin/ $1 [L,R=301]
-
Copyright notice: This article is published based on the Knowledge Sharing Attribution - Sharing in the Same Way 3.0 Mainland China License Agreement. Please follow this agreement for reprinting -
Article link: https://moe.xin/399.html [ copy ](Please indicate the source and link of this article when reprinting)
Related articles
-
No relevant articles in this article
-
No relevant articles in this article
12 comments
-
The service provided by Wotong is quite up to standard, although it is free of charge. Having bought the AlphaSSL Wildcard certificate from the VMBOX channel, his family will only give you the final certificate; You also need to go to the official website to download the root certificate and intermediate certificate, and then merge and deploy the certificate chain manually. #1st floor -
Why have you been struggling with SSL recently #2nd floor -
The server has started to struggle #3rd floor -
There is something wrong with the website title display And the expression of the comment can't be shown. I don't know whether it's my card or something #4th floor -
If conditions permit, HSTS can also be enabled #5F -
Fruit cat #6th floor -
Meow~ #7th floor