Title: .htaccess rewrite rule problem
Last modified: August 22, 2016

---

# .htaccess rewrite rule problem

 *  [cokebar](https://wordpress.org/support/users/cokebar/)
 * (@cokebar)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/htaccess-rewrite-rule-problem/)
 * The plugin autogenerate this lines which conflict with the rewrite rules set 
   by my self:
    RewriteCond %{HTTP_HOST} ^www.mysite.com RewriteRule ^(.*)$ [https://mysite.com/$1](https://mysite.com/$1)[
   R=301,L] RewriteCond %{HTTPS} !=on RewriteCond %{HTTP_HOST} ^mysite.com RewriteRule
   ^(.*)$ https\:\/\/mysite\.com\/$1 [R=301,L]
 * These lines cause my site a redirection loop when using Firefox with a SPDY connection.
   I don’t know why but removing these lines can solve the problem. And these lines
   are useless for me, because I wrote the rewrite rules in <VirtualHost> section
   in Apache2 conf file.
 * Could you please remove these lines or just give me an option to turn it off?
   
   Now I have to remove them manually after I modify the option of WPFC
 * [https://wordpress.org/plugins/wp-fastest-cache/](https://wordpress.org/plugins/wp-fastest-cache/)

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

 *  Plugin Author [Emre Vona](https://wordpress.org/support/users/emrevona/)
 * (@emrevona)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/htaccess-rewrite-rule-problem/#post-5795911)
 * Probably you have redirection rule or plugin. You need to remove it.
 *  Thread Starter [cokebar](https://wordpress.org/support/users/cokebar/)
 * (@cokebar)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/htaccess-rewrite-rule-problem/#post-5796015)
 * I’m sure that these lines are added by WPFC. These lines conflict with my rules.
   
   I think WPFC should not these lines.
 *  Plugin Author [Emre Vona](https://wordpress.org/support/users/emrevona/)
 * (@emrevona)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/htaccess-rewrite-rule-problem/#post-5796016)
 * Of course WPFC added 🙂 I am talking about another redirection rules which added
   by you or by any plugin.
 *  Thread Starter [cokebar](https://wordpress.org/support/users/cokebar/)
 * (@cokebar)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/htaccess-rewrite-rule-problem/#post-5796017)
 * But my need isn’t redirect anything to [https://mysite.com/](https://mysite.com/)
   
   I need a different rule.
 *  Thread Starter [cokebar](https://wordpress.org/support/users/cokebar/)
 * (@cokebar)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/htaccess-rewrite-rule-problem/#post-5796018)
 * WPFC shouldn’t decide the rules itself. Maybe someone serve mysite.com & [http://www.mysite.com](http://www.mysite.com)
   differently
 *  Plugin Author [Emre Vona](https://wordpress.org/support/users/emrevona/)
 * (@emrevona)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/htaccess-rewrite-rule-problem/#post-5796019)
 * But it was a feature request from users and I have added. What kind of redirection
   do you need?
 *  Thread Starter [cokebar](https://wordpress.org/support/users/cokebar/)
 * (@cokebar)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/htaccess-rewrite-rule-problem/#post-5796021)
 * Maybe you should add an option to turn it on/off
    It was mainly because I have
   a redirection loop for firefox users. if I write the rules in the .htaccess, 
   It will cause a redirection loop([https://mysite.com](https://mysite.com) to 
   [https://mysite.com/](https://mysite.com/), SPDY on) Chrome & IE don’t have the
   problem. I don’t know whether it is a bug of Firefox or mod_spdy(with apache 
   2.4.7)
 *  Thread Starter [cokebar](https://wordpress.org/support/users/cokebar/)
 * (@cokebar)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/htaccess-rewrite-rule-problem/#post-5796022)
 * I comment this line in admin.php and resolve the proble temporarily.
    // $this-
   >prefixRedirect().
 *  Plugin Author [Emre Vona](https://wordpress.org/support/users/emrevona/)
 * (@emrevona)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/htaccess-rewrite-rule-problem/#post-5796025)
 * > Maybe you should add an option to turn it on/off
 * I don’t want the users to be confused. maybe later I can add it.
 * > I comment this line in admin.php and resolve the proble temporarily.
   >  // $this-
   > >prefixRedirect().
 * That’s nice 🙂

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

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

 * ![](https://ps.w.org/wp-fastest-cache/assets/icon-256x256.png?rev=2064586)
 * [WP Fastest Cache - WordPress Cache Plugin](https://wordpress.org/plugins/wp-fastest-cache/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-fastest-cache/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-fastest-cache/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-fastest-cache/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-fastest-cache/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-fastest-cache/reviews/)

 * 9 replies
 * 2 participants
 * Last reply from: [Emre Vona](https://wordpress.org/support/users/emrevona/)
 * Last activity: [11 years, 3 months ago](https://wordpress.org/support/topic/htaccess-rewrite-rule-problem/#post-5796025)
 * Status: not resolved