Hi,
If your site runs on an Apache or Litespeed server, then there should be an .htaccess
file in the root of the site (i.e. the same level as the /wp-content/
and /wp-admin/
directories). This is a configuration file, and at the most basic level it contains the WordPress rewrite rules for the permalinks (urls).
** Note that this file is very sensitive, and if you make any errors in the syntax you can break the site. **
You can either:
1) use the file manager provider by your host (e.g. cPanel) to locate the file (note that you may have to check “show hidden files” as files that begin with .
are often hidden)
2) use a plugin like https://www.ads-software.com/plugins/wp-htaccess-editor/ to edit the file from the WordPress dashboard
If you use option (1) then take a backup of the .htaccess
file before making any changes, and make sure that your new lines of code come on a new line that is NOT inside the BEGIN WORDPRESS >>> END WORDPRESS block of rules.
If you use option (2) the plugin can check the syntax to see if it will break the site or not by using the “test before saving” button.