Title: htaccess Problem
Last modified: August 21, 2016

---

# htaccess Problem

 *  [grummel](https://wordpress.org/support/users/grummel/)
 * (@grummel)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/htaccess-problem-21/)
 * Hello,
 * for explanation: i’m using a WordPress with Multisite option and have protected
   my /wp-admin with htaccess.
 * Now while using the plugin “slideshow jqery image gallery” as a widget on my 
   WPMU instance i encounter a htaccess popup asking me for a login every time when
   i surf through the frontend or clicking a link (all in the frontend which should
   not be htacces protected).
 * Can you help? thx a lot!
 * [http://wordpress.org/extend/plugins/slideshow-jquery-image-gallery/](http://wordpress.org/extend/plugins/slideshow-jquery-image-gallery/)

Viewing 6 replies - 1 through 6 (of 6 total)

 *  [Vitzkrieg](https://wordpress.org/support/users/vitzkrieg/)
 * (@vitzkrieg)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/htaccess-problem-21/#post-3784752)
 * What did you add in your .htaccess file?
 * Does the issue happen when the widget is removed? plugin disabled?
 * If it’s on pages without the widget, then it sounds like a more general problem
   to the .htaccess file.
 * Maybe remove what you added to .htaccess and just install [Better WP Security](http://wordpress.org/plugins/better-wp-security/)
 *  Thread Starter [grummel](https://wordpress.org/support/users/grummel/)
 * (@grummel)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/htaccess-problem-21/#post-3784780)
 * The htaccess-Entry works fine for two years (see below). the htaccess-popup only
   occurs in frontend, when the slideshow plugin is active. therefore i think that
   the plugin perhaps makes a function call or something from the protected wp-admin-
   Directory.
 * some ideas?
 * <Directory “PATHTO…/wp-admin”>
    AuthType Basic AuthName “Only for Administrator”
   AuthUserFile PATHTO…/.htpasswd Require user USERNAME </Directory>
 *  Thread Starter [grummel](https://wordpress.org/support/users/grummel/)
 * (@grummel)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/htaccess-problem-21/#post-3784967)
 * No ideas where the “slideshow jqery image gallery”-widget calls something from
   the protected “wp-admin” directory? and if its necessary or not?
 * glad for your help!
 *  [DanielJ7](https://wordpress.org/support/users/danielj7/)
 * (@danielj7)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/htaccess-problem-21/#post-3784987)
 * I’m having this same problem…
    On my ain .htaccess I added a FilesMatch rule 
   to match wp-login.php only, and I secured the wp-admin directory, requiring a
   username and password to access it, using Password Protect directories in CPanel(
   basically adds what Grummel posted to the wp-admin directory’s .htaccess). However,
   on the front end (there should be no requirement for normal visitors to the site
   to access wp-admin directory, nor wp-login.php page) if this plugin is enabled
   users are asked to log in. If the plugin is disabled, they are NOT asked.
 * How can we make this work????
 *  [DanielJ7](https://wordpress.org/support/users/danielj7/)
 * (@danielj7)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/htaccess-problem-21/#post-3784988)
 * I solved this 🙂
 * This is what is needed:
 * Edit the SlideShowPlugin.php file, found in the “classes” directory of this plugin.
 * Find this string by searching for the word “admin”:
 * > admin_url(‘admin-ajax.php?action=slideshow_jquery_image_gallery_load_stylesheet&
   > style=’ . $styleName),
 * replace with this:
 * > ‘/home/username/public_html/wp-admin/admin-ajax.php?action=slideshow_jquery_image_gallery_load_stylesheet&
   > style=’ . $styleName,
 * where /home/username/public_html/wp-admin/ is the full path, on YOUR SERVER, 
   to your wp-admin folder. Basically, we are replacing
 * > admin_url(‘…..’)
 * with
 * > ‘PATHTOWPADMIN/……’
 * i.e. place it ALL inside the single quote, and remove the parenthesis
 * Save the newly edited file, and try to visit your front-end again…it should no
   longer request the login. This is because PHP is an internal process, so it doesn’t
   require validation via htpassword, provided it uses server paths, as opposed 
   to WP hooks or publically-accessible urls.
 * Hope this helps 🙂
 *  [fmedina](https://wordpress.org/support/users/fmedina/)
 * (@fmedina)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/htaccess-problem-21/#post-3785021)
 * What version was this fix for? The latest, 2.2.20 does not seem to have this 
   code.
 * Help,

Viewing 6 replies - 1 through 6 (of 6 total)

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

 * ![](https://s.w.org/plugins/geopattern-icon/slideshow-jquery-image-gallery_d3d2de.
   svg)
 * [Slideshow](https://wordpress.org/plugins/slideshow-jquery-image-gallery/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/slideshow-jquery-image-gallery/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/slideshow-jquery-image-gallery/)
 * [Active Topics](https://wordpress.org/support/plugin/slideshow-jquery-image-gallery/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/slideshow-jquery-image-gallery/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/slideshow-jquery-image-gallery/reviews/)

## Tags

 * [htaccess](https://wordpress.org/support/topic-tag/htaccess/)
 * [slideshow](https://wordpress.org/support/topic-tag/slideshow/)

 * 6 replies
 * 4 participants
 * Last reply from: [fmedina](https://wordpress.org/support/users/fmedina/)
 * Last activity: [12 years, 6 months ago](https://wordpress.org/support/topic/htaccess-problem-21/#post-3785021)
 * Status: not resolved