Where to Add Your Changes?

Please visit our channel & subscribe: https://youtube.com/dhakawebhost
 
When you’re editing your file, it’s important to note that lines beginning with a hashtag are comments and aren’t included in the .htaccess rule. When you’re adding rules, it's crucial that you include them either above or below the default WordPress rule explained above.

You shouldn’t add or edit anything between the lines # BEGIN WordPress and # END WordPress. For Multisite networks, the same principle applies, although, there aren’t any comments at the beginning and end as there are for single installs.

If you were to make any changes, it’s likely that it would be overwritten so it’s best to just stay out of its way and let WordPress do its thing.

Generally speaking, adding rules below the default WordPress lines keeps things more organized and adds a bit of clarity as to what your edits are as opposed to WordPress’ code. It may also be helpful to add your own comments to any additions you make to further organize your .htaccess file.

At the end of the day, it’s up to you and what would work best for your needs.
  • 0 Utilizadores acharam útil
Esta resposta foi útil?

Artigos Relacionados

.htaccess in WordPress

Please visit our channel & subscribe: https://youtube.com/dhakawebhost   The .htaccess file...

Where the .htaccess file located and what's .htaccess got to do with It?

Please visit our channel & subscribe: https://youtube.com/dhakawebhost   The...

How to download .htaccess file?

Please visit our channel & subscribe: https://youtube.com/dhakawebhost   You can download a...

How to create a .htaccess file?

Please visit our channel & subscribe: https://youtube.com/dhakawebhost   Depending on your...

How to Edit Your .htaccess File?

Please visit our channel & subscribe: https://youtube.com/dhakawebhost   There are many...