El archivo .htaccess en WordPressWordPress es el software de blogs líder en el mundo, y es concretamente fácil de utilizar y adaptable. Con WordPress, es factible crear con éxito sitios web con la ayuda de funciones ya predefinidas, sin mucho esfuerzo, y para proporcionar contenido como texto, imagen y vídeo. No se requiere conocimiento de HTML. WordPress además facilita la gestión y el mantenimiento de contenidos extensos. Al mismo tiempo de su fácil manejo, plus te posibilita hacer ciertos cambios y mejoras en tu web. Lo mejor de todo es que una vez que sabes cómo localizarlo y hacer cambios en este fichero todo es más fácil.

What is the .htaccess file in WordPress?

El archivo .htaccess en WordPress es un simple archivo que se ocupa de establecer ciertas configuraciones asociadas con el serverLos servidores son ordenadores centrales y potentes dentro del campo de la tecnología de la información que procesan y proporcionan software y archivos en una red. Desde el punto de vista de un cliente, varios ordenadores en una red pueden ponerse en contacto con el servidor central para conseguir la información solicitada. En la arquitectura cliente-servidor, el servidor puede ser un software que proporciona un servicio y se ejecuta en plus Web Apache  Concepto de Apache ¿Qué es y qué hace Apache? Apache es un software especializado en ofrecer servicios de servidor web. Es versátil, ligero y muy útil, al mismo tiempo de ser absolutamente sin costes y de código abierto. Su popularidad es tal que, hoy en día, cerca del 50% de las páginas web de todas partes se ejecutan en un servidor de este tipo. Aún cuando se le conoce plus (The vast majority of hostings that host WordPress websites work with Apache).

We can say in a single line that:

The .htaccess file is an Apache configuration file.

Which means that this simple file contains some instructions associated with the operation of the server.

Este archivo se encuentra en el root directoryUn directorio raíz (en inglés root directory), es el directorio del nivel más alto de una jerarquía. Además se conoce como documento raíz. Desde esta raíz todos los demás directorios se ramifican. En el caso de las webs, los archivos más necesarios, como las páginas HTML, se encuentran en el directorio raíz del servidor desde el que se solicitará su visualización mediante del navegador. Los directorios raíz además se usan plus de nuestro sitio y cuenta con una particularidad.

The file .htaccess it is, by default, a hidden file.

We cannot see it with the naked eye and that is why it begins with a period.

The .htaccess also has no extension.

What does the .htaccess file do in WordPress?

Ok, we already know that this file takes care of Apache configuration, but that doesn't tell us much.

In practice, the default .htaccess file in WordPress fulfills a very specific function:

It takes care of managing the way in which the permanent links of your website are displayed.

You know, we are talking about link structures like:

EXAMPLES.

Cada vez que cambias esta link structureLa estructura de enlaces de una web juega un papel importante en cuanto a los enlaces entrantes externos (backlinks) y los enlaces internos. Ambos casos son ponderados de manera distinto por los motores de búsqueda. Mientras que la estructura de link externa es un factor de posicionamiento al mismo tiempo de la confianza, la estructura de link interna es útil para la navegación del usuario y, a la vez, importante plus o la forma en la que tu sitio mostrara los links this file is modified.

In some cases the .htaccess file it is created for the first time on your website or BlogEl término blog se usa para describir un diario virtual en Internet. El autor de un blogger puede publicar posts sobre cualquier tema. Los posts suelen estar presente de forma cronológica. El estilo de redacción de un blog suele ser informal y se escribe en primera persona. No obstante, además son posibles otros estilos, por ejemplo en el caso de los periódicos online, en los que la atención se centra plus de WordPress en el momento en que decides qué tipo de estructura de enlaces mostrará tu sitio.

On most WordPress websites, this is all this file does: manage the permalink structure.

But it is not the only thing, with this file we can achieve other things that are quite useful for our website.

How to find and edit the .htaccess file in WordPress?

There are several ways to find and modify the .htaccess file in WordPress.

Let's look at the first, and one of the best ways:

You remember that the .htaccess file is actually in the root directory, in the hosting where our WordPress website is installed.

It is for this reason that we have to log in in our Hosting and have access to file directory.

This is something that we can do at the same time via FTPConcepto de FTP/¿Qué es el FTP?Un FTP, siglas de Protocolo de Transferencia de Archivos (File Transfer Protocol), es un sistema que se emplea para transferir datos entre un PC local y la web, o viceversa, que suele encontrarse siempre disponible dentro del alojamiento de cualquier compañía que haya contratado los servicios de uno para alojar un dominio y llevar adelante todas esas tareas imprescindibles para abrir una página web. Es plus, pero por el browserUn navegador (además: browser) es una herramienta informática que te permite ver documentos y datos y navegar por la red. Los navegadores pueden mostrar distintos tipos de recursos de información; principalmente documentos HTML, a pesar de todo, además son posibles otros tipos de archivos y contenido multimedia, como PDF, JPEG, MPEG, GIF o el lenguaje de meta marcado. A través el uso de complementos especiales y la configuración respectivo, los plus al mismo tiempo podemos hacerlo de forma rápida y sin complicaciones.

Para editarlo, todo lo que tenemos que hacer es posicionar el cursor sobre el archivo, presionar click¿Qué es un click?Es la acción de pulsar un botón del ratón una vez colocado el puntero del mismo sobre un elemento determinado de la pantalla. El click determina la interacción del usuario con el sistema.Otras denominaciones: Clic plus derecho y seleccionar la opción:

View / Edit.

With the file open you can make all the changes you want.

An important caveat:

You have to keep in mind that the modifications and changes that you make and save in the .htaccess file of your website in WordPress cannot be undone.

That means you can break your website if you're not careful.

But beware that there are several ways to avoid disaster, take note:

Make a backup copy of the .htaccess file:

All you have to do is locate the .htaccess file, download it and put it safely on your computer (you can send yourself a copy by email or save it in Google Drive, remember that it is also a very light file)

Make a backup of your website:

This point is very important, so important that we already dedicate an entry to the subject.

If you want to delve into the whole topic of backups or Backups of your web (which we recommend):

Here you have the entrance

What if I can't see the .htaccess file in the root directory of my website installation?

As you know the .htaccess file is a invisible file a hidden file.

To see it all you have to do is enable the option of:

View or show hidden files in your host's file manager.

La ubicación de la opción podría variar ligeramente en función de la versión del softwareConcepto de Software¿Qué es el Software y cuál es su función?Un Software es la parte lógica, o más bien el soporte lógico, de cualquier sistema de tipo informático. Sea un PC, un teléfono teléfono celular o inclusive una tablet, es todo aquel programa que se ejecuta en él gracias a la coordinación de la parte física, es decir, el hardware, para llevar adelante alguna tarea concretamente o un recopilatorio de plus que use tu host, pero es fácil encontrarla.

Sometimes it happens that, although you have followed everything to the letter (you activated the option to show hidden files and files), the .htaccess file does not appear anywhere.

In that case you shouldn't worry.

Why can't I see the WordPress .htaccess file?

This is especially the case on “new” websites to which not many changes have been applied.

To fix it go to your website, log in and have access to the WordPress dashboard.

TuPaginaWeb.com/wp-admin/

Once you are logged in look for the option:

Settings - Permalinks

Now all you have to do is save the changes.

Yes, as you read it, you don't need to make any changes to the structure of your permanent links.

That alone will generate the .htaccess file.

The next thing is to go to host, specifically to root directory, refresh the view (with F5 or reload) and voila,

You should be able to see the .htaccess file.

How to modify the .htaccess file in WordPress easily without having to access the host?

If you are looking to modify the .htaccess file but do not want to have access on your server, you are in luck because there are several options to edit the .htaccess file without having to go to the root directory.

There are dedicated plugins that make it easy for you to manage the .htaccess file.

But we don't yearn to overload our WordPress installation with more plugins.

Es por este motivo que aprovecharemos un pluginConcepto de Plugin¿Qué es un Plugin?Un Plugin es un fragmento o componente de código hecho para ampliar las funciones de un programa o de una herramienta. En el ámbito del marketing digital, especialmente dentro del marketing de contenidos, es algo que se utiliza con mucha frecuencia dentro de entornos como WordPress, puesto que sirven al momento de contar con añadidos que hagan mucho más cómoda y completa la experiencia de plus que de seguro ya está instalado en tu web.

It's about the plugin: Yoast SEO  ¿Qué es SEO o search engine optimization?   Conjunto de prácticas destinadas a mejorar el posicionamiento de una web en el ranking de resultados de los motores de búsqueda. Al contrario que la estrategia SEM, que contempla la inclusión de enlaces contratados para obtener este objetivo, el procedimiento SEO se ocupa exclusivamente de los resultados naturales (no pagados) localizados por el algoritmo propio de cada buscador. Para esto contempla ajustar plus.

This plugin has an option that allows you to modify various files on your website:

As the sitemapUn sitemap o mapa del sitio es una representación estructurada de todas las páginas de una web. Tanto la estructura del sitio como los enlaces individuales entre las páginas pueden ser listados. Se pueden distinguir dos tipos de sitemaps distintos, HTML sitemaps y XML sitemaps. El sitemap HTML como árbol de navegación y vista general Los sitemaps HTML se pueden usar en las webs como una lista de todas las plus, the robots.txtEl archivo robots.txt es un documento que establece qué partes de un dominio pueden ser analizadas por los rastreadores de los motores de búsqueda y proporciona un link al XML-sitemap. Estructura El llamado “Robots Exclusion Standard Protocol“, Protocolo Estándar de Exclusiones Robots, se publicó por primera vez en 1994. Este protocolo define que los rastreadores de los motores de búsqueda deben buscar y leer el archivo llamado “robots.txt“ antes de plus y, de todos modos:

The .htaccess file.

How to modify .htaccess with Yoast SEO

To modify the .htaccess file with Yoast SEO you must log in and, on your WordPress dashboard, find the tab:

SEO

Hover over the tab that says: SEO.

SEO Tools

Now you will see several options.

Select the option:

Tools.

When you press the tools option you will see a settings panel.

tools settings panel

To work with the .htaccess file you must select the option:

File editor.

The first thing you will see will be the robots.txt configuration options

But if you go down just a little bit you will see the .htaccess file options.

WordPress htaccess file

From that .htaccess tab that Yoast SEO provides you, you can do everything you need without having access to the files section of your hosting.

What can I do with the .htaccess file?

With the .htaccess file you can do several cool things.

One of the things you can do with .htaccess in WordPress is 301 redirects.

It's pretty straightforward once you know how to find and modify your .htaccess file, pay attention:

To create a redirección 301Concepto de Redirección 301¿Qué es una Redirección 301?La redirección 301 es un recurso muy empleado dentro del ámbito web, único lugar en el que existe, para mover páginas y redireccionar tráfico. Es una forma de indicar a los robots de los buscadores como Google que, en vez de dirigirse a una página, han de dirigirse a otra de forma permanente. Así, al mismo tiempo, se le da más fuerza de plus todo lo que tienes que hacer es sustituir las siguientes urls por tus urls:

Redirect 301 /LaPáginaVieja httpsHTTPS (protocolo de Transferencia de Hiper-Texto) es un protocolo que permite determinar una conexión segura entre el servidor y el cliente, que no puede ser interceptada por personas no autorizadas. En resumidas cuentas, es la versión segura de el http (Hyper Text Transfer Protocol) Cómo funciona Una conexión HTTP estándar en Internet puede ser fácilmente secuestrada por partes no autorizadas. El propósito de una conexión HTTPS es evitar esto: encriptar plus://www.TuWebEnWordPress.com/LaPáginaNueva

At the same time as 301 redirects you can increase the size of the files that you can upload to your WordPress website.

First you must find out what is the maximum file size allowed on your website.

Once you know the size of the file, all you have to do is paste these lines into your .htaccess file:

 

php_value upload_max_filesize 256M

php_value post_max_size 256M

php_value max_execution_time 300

php_value max_input_time 300

 

256M is the new maximum size, but you can change that amount to your liking.

The best thing is that with the .htaccess file you can still do more things to promote your website, we talk about: security and other settings that can improve your experience and that of your website visitors.

If you want to discover them you can sign up to best online course in Spanish of WordPress.