• Resolved Bubbles

    (@ciaobellaz)


    Love your plugin, but …

    I just updated to the latest version on one of my sites, and it looks like saving settings modifies my .htaccess file. It appears to wipe it and then add the basic WP .htaccess requirements back in. I don’t update my settings often, but when I do, I don’t want my .htaccess file updated at all.

    Is there a way to turn this off? Also suggest a warning (I spent a bit of time trouble shooting to figure out WHY my pages were breaking) and maybe a more elegant solution than just emptying out the file.

    Thanks!

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Lucian Apostol

    (@thedark)

    Hello.

    I am sorry for any inconvenience created by my pluugin. The plugin does not delete the .htaccess file and nor replaces it. It is using flush_rewrite_rules functon from wordpress core. Running this function is required to apply the new settings. This function is also called when you visit or update the Settings -> Permalinks menu in wordpress. Can you check and see if this also happens when you update your permalink settings ?

    I think that wordpress should keep your custom entries in .htaccess if you put them out of the designated space for wordpress rewrite rules.

    However, I have update the plugin to only force a soft flush and not rewriting the whole htaccess and it should fix your problem regarding usage of auto affiliate links

    Thread Starter Bubbles

    (@ciaobellaz)

    Hi Lucian!

    Thanks so much for the quick response! Apology not necessary, but I appreciate it. 🙂

    Modifying my Permalinks setting breaks the site (error code 500) and doesn’t save the new setting, but my .htaccess file remains untouched. It’s obviously trying to get to my .htaccess file though, so you’re probably right about the rewrite flush. My .htaccess is mostly rewrite rules, and they run before the WP rewrite, so apparently that IS the issue.

    That said, your plugin may not have technically modified the .htaccess file, but if it invokes something which does, then it’s your plugin that’s doing the thing I’m talking about. 🙂 No need to discuss semantics anymore though, since I did get it all to work and your soft flush seems a good work around. Hopefully anyone else experiencing such a problem will have this for reference.

    Again, thank you. LOVE the plugin!

    Plugin Author Lucian Apostol

    (@thedark)

    Hello.

    I am glad it worked out for you. I still have one question. Do you have cloaking enabled from plugin settings ?

    Thread Starter Bubbles

    (@ciaobellaz)

    No, sir — I don’t use cloaking at all.

    Settings are: Links enabled on any page or post, no limit as to the number of links on a page/post, target is new window, links are no follow, and I have one class set just to bold the links. 🙂

    The purpose to redirects in my .htaccess — outside of what I have set in the plugin — if it matters or is of interest, is to enable link creation on the fly. So “my-website.com/product” goes to “this-website.com/product” and “my-website/search/this-term” goes to “this-website/search/this-term” and there is some tracking code in my links too, to see which social media site is getting hits.

    In order to achieve this, I learned that I have to turn on the RewriteEngine in .htaccess first, apply above rules, and then run the WP rules. if the order isn’t what I have, either WP doesn’t work or my on-the-fly links don’t work. Does that make sense; am I explaining well?

    I guess to be technically correct they’re not redirects; they’re rewrites, and I’m pretty sure I shouldn’t use those terms interchangeably. 🙂

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Turn off update .htaccess?’ is closed to new replies.