Excluding folders from Wordpress Permalinks

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:

  1. Locate the directory in which Wordpress is installed using the cPanel File Manager, SFTP or Web Disk
  2. Edit the file named .htaccess (It may be necessary to change settings in File Manager or computer to make files beginning with a .)
  3. Add the following rule in the .htaccess file of your WordPress application for each subfolder that you want to exclude:
  4. RewriteRule ./subfolder /index.php [L]
  5. Save the file and upload to your website

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.

  • wordpress, permalink
  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

Your PHP installation appears to be missing the MySQL extension which is required by WordPress

The following error may occur when visiting your website using Wordpress: Your PHP...

How to check the Wordpress version

Keeping the Wordpress software up to date is important to maintaining the security of your...

Optimising Wordpress & Reducing Usage

All Valcato Hosting accounts are located on powerful servers shared between a number of customers...

Powered by WHMCompleteSolution