ThemeNcode Docs

First Things First

Estimated reading: 2 minutes

So now, You have the plugin installed on your WordPress Website, Congrats!

The plugin adds some custom code in your .htaccess file if you’re using apache. However, in some cases, it may fail for a few reasons like the .htaccess file not being writeable by WordPress.

If you’ve activated the plugin and added some restrictions but nothing is working, please try to deactivate and reactivate the plugin first. If that doesn’t solve the issue, please continue with the process below:

Apache Server

If you’re using an apache server, the plugin tries to automatically add some code to your .htaccess file. If your .htaccess file is not writeable by WordPress, these rules will not be added automatically, in that case, you need to put the following lines of code in your .htaccess file at the very bottom:

	# WP File Access Manager start
	RewriteRule ^wp-content/uploads(/.*\.\w+)$ index.php?wfam_requested_file=$1 [QSA,L]
	# WP File Access Manager end

Nginx Server

If you’re using nginx server, You need to put the following lines to your nginx config:

	location ~ "^/wp-content/uploads/(.*)$" {
	    rewrite ^/wp-content/uploads(/.*\.\w+)$ /index.php?wfam_requested_file=$1;
	}	

Openlitespeed Server

If you’re using nginx server, You need to put the following lines to your nginx config:

	# WP File Access Manager start
	RewriteRule ^/?wp-content/uploads(/.*\.\w+)$ index.php?wfam_requested_file=$1 [QSA,L]
	# WP File Access Manager end

Leave a Comment