Title: .htaccess problem
Last modified: August 19, 2016

---

# .htaccess problem

 *  [krkhan](https://wordpress.org/support/users/krkhan/)
 * (@krkhan)
 * [17 years, 8 months ago](https://wordpress.org/support/topic/htaccess-problem-7/)
 * I am using WordPress in a subdirectory. After installing the fgallery plugin 
   and setting it to use nice URLs, here’s my .htaccess file in the /public_html/
   wordpress directory:
 *     ```
       # BEGIN FGALLERY
       <IfModule mod_rewrite.c>
       RewriteEngine On
       RewriteRule ^photos/?([^/]*)?/?([^/]*)?/?([^/]*)?/?([^/]*)?/?$   /wordpress/wp-content/plugins/fgallery/fim_photos.php?$1=$2&$3=$4 [QSA,L]
       </IfModule>
       # END FGALLERY
       # BEGIN WordPress
       <IfModule mod_rewrite.c>
       RewriteEngine On
       RewriteBase /wordpress/
       RewriteCond %{REQUEST_FILENAME} !-f
       RewriteCond %{REQUEST_FILENAME} !-d
       RewriteRule . /wordpress/index.php [L]
       </IfModule>
   
       # END WordPress
       ```
   
 * The problem I face now is that all fgallery pages ([example](http://www.inspirated.com/wordpress/photos/album/screenshots/))
   give 404 errors in wget/W3 [Validators](http://validator.w3.org/check?uri=http%3A%2F%2Fwww.inspirated.com%2Fwordpress%2Fphotos%2Falbum%2Fscreenshots%2F)/
   Google Webmaster Tools, despite working perfectly in browsers.
 * Any ideas about what’s preventing these tools from seeing the page?

Viewing 1 replies (of 1 total)

 *  Thread Starter [krkhan](https://wordpress.org/support/users/krkhan/)
 * (@krkhan)
 * [17 years, 8 months ago](https://wordpress.org/support/topic/htaccess-problem-7/#post-853259)
 * Fixed by adding the following to the fim_photos.php file:
 *     ```
       header("HTTP/1.1 200 OK");
       header("Status:200 OK");
       ```
   

Viewing 1 replies (of 1 total)

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

## Tags

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

 * 1 reply
 * 1 participant
 * Last reply from: [krkhan](https://wordpress.org/support/users/krkhan/)
 * Last activity: [17 years, 8 months ago](https://wordpress.org/support/topic/htaccess-problem-7/#post-853259)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
