The Advanced Access Manager is a great plugin that lets you customize users’ rights to access your website’s backend.

It’s also a good security plugin that protects your personal information when you limit access to developers who sometimes have to work on your live website.

After testing WP Ghost with the AAM plugin, we noticed that with minor adjustments, the two plugins work beautifully together.

AAM plugin recommends you to add some rewrite rules into the .htaccess file. All you need to do is to change the old WP path with the new WP Ghost path, and that’s all:

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} -f
RewriteCond %{REQUEST_URI} \.(jpg|jpeg|png|svg|gif|ico|pdf|doc|docx|ppt|pptx|pps|ppsx|odt|xls|xlsx|psd)$
RewriteCond %{REQUEST_URI} wp-content/uploads/(.*)$
RewriteRule . /index.php?aam-media=1 [L]
</IfModule>

to

<IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} -f
    RewriteCond %{REQUEST_URI} \.(jpg|jpeg|png|svg|gif|ico|pdf|doc|docx|ppt|pptx|pps|ppsx|odt|xls|xlsx|psd)$
    RewriteCond %{REQUEST_URI} storage/(.*)$
    RewriteRule . /index.php?aam-media=1 [L]
</IfModule>

Where storage is the custom wp-content/uploads path you set in WP Ghost > Change Paths > WP Core Security section. If you use another upload path name, add your custom path name in the above configuration.