Redirigir mi sitio web de WordPress a HTTPS para hosting Plesk
Si tienes un certificado seguro (SSL) en tu sitio web de WordPress, puedes redirigir automáticamente a los visitantes a la versión segura (HTTPS) de tu sitio web para asegurarte de que su información esté protegida.
La forma en que redireccionas el tráfico depende del tipo de hosting que tengas.
- Inicia sesión en tu panel de administración de WordPress.
- Haz clic en Configuración y luego en General .
- Cambia la URL de tu WordPress y la URL del http://coolexample.com a https://coolexample.com y haz clic en Guardar cambios .
- Crea un archivo web.config en tu carpeta httpdocs
- Inserta el código que se indica a continuación en tu
web.config
archivo y guárdelo.configuración > system.webServer > reescribir > reglas > claro / > rule name = "Redirigir a https" stopProcessing = "true"> Match url = "(.*)" / > condiciones > agregar input = "{HTTPS} "pattern =" off "ignoreCase =" true " / > /condiciones > action type = "Redireccionar" url = "https://{HTTP_HOST}{REQUEST_URI} "redirectType =" Permanente " / > /regla > rule name = "Regla principal" stopProcessing = "true"> Match url = ".*" / > condiciones logicGrouping = "MatchAll"> agregar input = "{REQUEST_FILENAME} "matchType =" IsFile "negate =" true " / > agregar input = "{REQUEST_FILENAME} "matchType =" IsDirectory "negate =" true " / > /condiciones > action type = "Rewrite" url = "index.php / {R: 0}" / > /regla > /reglas > /reescribir > /system.webServer > /configuración >