Title: Permalinks break cgi-bin!
Last modified: August 18, 2016

---

# Permalinks break cgi-bin!

 *  [bryan868](https://wordpress.org/support/users/bryan868/)
 * (@bryan868)
 * [19 years, 3 months ago](https://wordpress.org/support/topic/permalinks-break-cgi-bin/)
 * Alrighty… I justed moved my wordpress to its own directory, re-activated permalinks
   and realized my cgi-bin scripts do not work (403 Forbidden error). When I get
   rid of the permalinks, the cgi-bin scripts work again.
 * Why would the .htaccess file that WP created be interfering with my cgi-bin? 
   I’ve done a search and found others with this problem with no definite fix. Help
   would be much appreciated! There has to be some .htaccess fix for this.

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

 *  [DianeV](https://wordpress.org/support/users/dianev/)
 * (@dianev)
 * [19 years, 3 months ago](https://wordpress.org/support/topic/permalinks-break-cgi-bin/#post-531707)
 * Hard to guess without seeing what’s in the .htaccess file.
 *  Thread Starter [bryan868](https://wordpress.org/support/users/bryan868/)
 * (@bryan868)
 * [19 years, 3 months ago](https://wordpress.org/support/topic/permalinks-break-cgi-bin/#post-531708)
 * Just the standard, here:
 *     ```
       # BEGIN WordPress
   
       <IfModule mod_rewrite.c>
       RewriteEngine On
       RewriteBase /
       RewriteCond %{REQUEST_FILENAME} !-f
       RewriteCond %{REQUEST_FILENAME} !-d
       RewriteRule . /index.php [L]
       </IfModule>
   
       # END WordPress
       ```
   
 *  Thread Starter [bryan868](https://wordpress.org/support/users/bryan868/)
 * (@bryan868)
 * [19 years, 3 months ago](https://wordpress.org/support/topic/permalinks-break-cgi-bin/#post-531998)
 * Any ideas?
 *  Thread Starter [bryan868](https://wordpress.org/support/users/bryan868/)
 * (@bryan868)
 * [19 years, 3 months ago](https://wordpress.org/support/topic/permalinks-break-cgi-bin/#post-532096)
 * Can anybody help? This is becoming a huge problem for me.
 * How can I exclude the /cgi-bin/ from being affected by the .htaccess?
 *  Thread Starter [bryan868](https://wordpress.org/support/users/bryan868/)
 * (@bryan868)
 * [19 years, 3 months ago](https://wordpress.org/support/topic/permalinks-break-cgi-bin/#post-532104)
 * Someone suggesting using this code right above the rewrite base line, but it 
   didn’t work.
 * `RewriteCond %{REQUEST_URI} !^/cgi-bin/`
 * Any other thoughts?!
 *  [defendthyself](https://wordpress.org/support/users/defendthyself/)
 * (@defendthyself)
 * [18 years, 8 months ago](https://wordpress.org/support/topic/permalinks-break-cgi-bin/#post-532244)
 * Is there anyone here who can help??? There are a lot of people having this cgi
   error issue. please help us.

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

The topic ‘Permalinks break cgi-bin!’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 6 replies
 * 3 participants
 * Last reply from: [defendthyself](https://wordpress.org/support/users/defendthyself/)
 * Last activity: [18 years, 8 months ago](https://wordpress.org/support/topic/permalinks-break-cgi-bin/#post-532244)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
