Closed. This question needs to be more focused。它当前不接受答案。
                            
                        
                    
                
                            
                                
                
                        
                            
                        
                    
                        
                            想改善这个问题吗?更新问题,使其仅通过editing this post专注于一个问题。
                        
                        5年前关闭。
                                                                                            
                
        
我需要一个非常简单的.htaccess来重定向所有来自的请求

http://puaction.com

http://www.puaction.com

https://www.puaction.com



https://puaction.com

最佳答案

尝试将以下规则添加到文档根目录中的htaccess文件中(对于puaction.com域):

RewriteEngine On
RewriteCond %{HTTPS} off [OR]
RewriteCond %{HTTP_HOST} ^www\. [NC]
RewriteRule ^(.*)$ https://puaction.com/$1 [L,R]

10-08 17:11