Agregar Redireccion 301 en htaccess para Wordpress

  • Autor Autor alex98
  • Fecha de inicio Fecha de inicio

alex98

Beta
¡Usuario con pocos negocios! ¡Utiliza siempre saldo de Forobeta!
Buenas a todos, tengo el siguiente codigo en mi archivo htaccess.

Insertar CODE, HTML o PHP:
# php -- BEGIN cPanel-generated handler, do not edit
# Set the “ea-php56” package as the default “PHP” programming language.
<IfModule mime_module>
  AddType application/x-httpd-ea-php56 .php .php5 .phtml
</IfModule>
# php -- END cPanel-generated handler, do not edit
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

# END WordPress

Mi duda es, donde agregar la redireccion siguiente:

Insertar CODE, HTML o PHP:
RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://tudominio.com/$1 [R=301,L]

Pues al parecer no funciona mi re-direccion, obviamente he remplazado el dominio por el mio.
 
Seria abajo de "RewriteEngine On" supongo

Aunque como ya lo tienes en el codigo, tendrias que poner solo las otras dos lineas.