Title: .htaccess settings
Last modified: August 22, 2016

---

# .htaccess settings

 *  [afortunado](https://wordpress.org/support/users/afortunado/)
 * (@afortunado)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/htaccess-settings/)
 * Hello,
 * On my site, I restrict access to documents so that only people who log in can
   access them. To do this, I’ve added the following lines to .htaccess:
 * RewriteCond %{HTTP_COOKIE} !^.*wordpress_logged_in.*$ [NC]
    RewriteRule \.(jpg
   |jpeg|gif|pdf|doc|docx|rtf)$ – [NC,F,L]
 * However, GDE can’t acces the files this way. Is it possible to configure .htaccess
   so that people need to login to access documents on my site, but grants access
   to GDE as well?
 * Kind regards,
 * Felix Cornelissen
 * [https://wordpress.org/plugins/google-document-embedder/](https://wordpress.org/plugins/google-document-embedder/)

Viewing 1 replies (of 1 total)

 *  [k3davis](https://wordpress.org/support/users/k3davis/)
 * (@k3davis)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/htaccess-settings/#post-5295775)
 * Felix,
 * I’ve never tried what you’re attempting here, but if you contact me via email
   there may be something we can try. My email address is located in the GPL statement
   at the top of the plugin file gviewer.php in its root folder, or you can use 
   the support tab in GDE Settings.
 * Kevin

Viewing 1 replies (of 1 total)

The topic ‘.htaccess settings’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/google-document-embedder_484848.svg)
 * [Google Doc Embedder](https://wordpress.org/plugins/google-document-embedder/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/google-document-embedder/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/google-document-embedder/)
 * [Active Topics](https://wordpress.org/support/plugin/google-document-embedder/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/google-document-embedder/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/google-document-embedder/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [k3davis](https://wordpress.org/support/users/k3davis/)
 * Last activity: [11 years, 11 months ago](https://wordpress.org/support/topic/htaccess-settings/#post-5295775)
 * Status: not a support question