NixUser | Unix User | Linux User | NixUser

access a folder/directory in wordpress

Suppose you have installed wordpress in root directory of your account.

There is a folder/directory, say docs in the same (root) directory. You will not be able to access this folder like url.

The wordpress will redirect to a 404 page instead.

To override the wordpress rewrite rules, add the following line to .htaccess in the root folder.

RewriteRule ^docs/.*$ – [L]

right after the following lines in the .htaccess file already there.

RewriteEngine On
RewriteBase /

This will do the trick and you will able to access the folder docs and its contents via any web browser.