Title: pshing's Replies | WordPress.org

---

# pshing

  [  ](https://wordpress.org/support/users/pshing/)

 *   [Profile](https://wordpress.org/support/users/pshing/)
 *   [Topics Started](https://wordpress.org/support/users/pshing/topics/)
 *   [Replies Created](https://wordpress.org/support/users/pshing/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/pshing/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/pshing/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/pshing/engagements/)
 *   [Favorites](https://wordpress.org/support/users/pshing/favorites/)

 Search replies:

## Forum Replies Created

Viewing 1 replies (of 1 total)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Advanced Access Manager – Access Governance for WordPress] Cannot display upload media after adding .htaccess](https://wordpress.org/support/topic/cannot-display-upload-media-after-adding-htaccess/)
 *  Thread Starter [pshing](https://wordpress.org/support/users/pshing/)
 * (@pshing)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/cannot-display-upload-media-after-adding-htaccess/#post-8823771)
 * Hi Vasyl,
 * Thanks for your reply. It is still not working even I have made the changings
   in .htaccess. The only way I can work is to remove the .htaccess, but it is meaningless
   since it have given up the physical file protection.
 * Let me try to explain more. I have made two changes on the .htaccess, since my
   project is hosting in testing environment and it isn’t located under the root
   of /var/www/html/. My project location –> /var/www/html/XXX/XXX/.
 * # BEGIN AAM Media Access Control
    RewriteEngine On **RewriteBase /XXX/XXX/** 
   <– 1. Set the base path to my sub directory. RewriteRule ^index\.php$ – [L] RewriteCond%{
   REQUEST_FILENAME} -f RewriteCond %{REQUEST_URI} !(\.css|\.php|\.js)$ **RewriteRule.
   index.php?aam-media=1 [L] ** <- Remove the starting ‘/’, try to use wordpress
   project’s index.php instead of the root’ index.php. # END AAM Media Access Control
 * Does the plugin only support for the wordpress which is installed under root 
   directory? (/var/www/html/)
 * Or how can I revise the .htaccess to make it workable?
 * Thanks again,
    pshing

Viewing 1 replies (of 1 total)