Permalinks are the permanent URLs to your individual Wordpress blog posts, as well as categories and other lists of postings. A permalink is what another internet user will use to link to your article (or section), or how you might send a link to your story in an e-mail message or from another website.
Sometimes Wordpress permalinks can interfere with the behaviour of other scripts on your Valcato Hosting account, even if they're in separate directories. This guide shows how to resolve such a problem by excluding specific folders from Wordpress permalinks:
- Locate the directory in which Wordpress is installed using the cPanel File Manager, SFTP or Web Disk
- Edit the file named .htaccess (It may be necessary to change settings in File Manager or computer to make files beginning with a .)
- Add the following rule in the .htaccess file of your WordPress application for each subfolder that you want to exclude:
- Save the file and upload to your website
RewriteRule ./subfolder /index.php [L]
As an example, if you have subfolders 1 through 5 and wish to exclude the first three from the Wordpress Permalink structure, add these three entries to the .htaccess file:
RewriteRule ./subfolder1 /index.php [L] RewriteRule ./subfolder2 /index.php [L] RewriteRule ./subfolder3 /index.php [L]
This will allow you to load the files from these three directories, but the files from the other two (subfolder4 and subfolder5) will still lead to your Wordpress installation.