• Plugin works great.

    But, I like to use .htaccess for my own 301 redirects.

    Plugin seems to install needed code in .htaccess just fine. But when I download .htaccess, insert my custom 301 redirects, and upload .htaccess again, I get error message from plugin:

    “The Adaptive Images settings are saved, but the .htaccess file was not able to be updated yet.”

    The code from plugin is still in .htaccess, but the plugin does not recognize this.

    When I click to update settings for plugin, my custom 301 redirects are deleted from .htaccess

    Anyway to resolve this issue so I can use plugin but also have custom 301 redirects in .htaccess?

    Thanks for any suggestions.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Takis Bouyouris

    (@nevma)

    Hello, my friend,

    The only possible reason for this to happen is if the Adaptive Images plugin mixes up its own htaccess code part with your own htaccess code part. In order to avoid this, we try to wrap our code in special comments, kinda like the WordPress core does when it adds its own htaccess code part to enable permalinks.

    Does this help you identify the reason why the mix-up happens?

    If not, then could you please send here (or by email, if this is sensitive information) the code you are adding to the htaccess file, so that we can test it out ourselves?

    Cheers,
    Takis

    Thread Starter andrew55

    (@andrew55)

    Thanks for reply.

    Here are steps I take:

    1. Adaptive Plugin is installed and working fine with it’s code inserted into .htaccess
    2. I download .htaccess (using filezilla) and add my own code at end of .htaccess, without touching the code from Adaptive Plugin:

    redirect 301 /oldurl/ /newdirectory/newurl/

    3. I upload edited file to website (using filezilla).
    4. I then get this message from Adaptive Plugin:

    “The Adaptive Images settings are saved, but the .htaccess file was not able to be updated yet.”

    It’s strange, because I get this message even though I haven’t touched the Adaptive Code inside of .htaccess. I only added a simple 301 redirect to .htaccess at end of file.

    So, after Adaptive Plugin is installed, I’m adding a simple 301 redirect to .htaccess file. But when plugin sees this, it gives me error message. When I click the “update” button in plugin, it removes the 301 redirect.

    When using 301 redirects in .htaccess, is there maybe a special place I need to insert 301 redirect to make it work with Adaptive Plugin?

    Plugin Author Takis Bouyouris

    (@nevma)

    Hello,

    Thank you very much for the comprehensive information.

    Indeed it seems very weird. The Adaptive Images code is wrapped in special comments, so that the plugin can tell it apart from the rest of the htaccess code.

    Does perhaps this newdirectory that you mention refer to the fact that you have moved your WordPress directory in a subdirectory or something like that?

    Apart from the above this seems like a case that requires some debugging. Is it possible that you could send me the contents of your htaccess file after the Adaptive Images settings have been saved and after you have made your changes? If it is sensitive information you can send it to us at info [at] nevma [dot] gr.

    Sorry for putting you through all this trouble, but I believe we will get to the bottom of this.

    Cheers,
    Takis

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

The topic ‘,htaccess issue’ is closed to new replies.