Apache 2.4 .httacess file syntax change |
Post Reply |
Author | |
DHill18
Newbie Joined: Mar 31 2018 Location: Salem, OR USA Status: Offline Points: 7 |
Post Options
Thanks(0)
Posted: Mar 31 2018 at 8:22pm |
My web host has upgraded his servers to Apache 2.4 which requires a syntax change to the .htaccess file. The old, now invalid syntax was:
The new valid syntax is:
The old syntax causes an access error when anyone tries to open the web site. OpenElement rewrites the .htaccess file to the old syntax every time I upload a page change. I have to manually correct the .htaccess file syntax on the host server after every update (I use FileZilla for this). I can't find where the old syntax is located in OpenElement, so I can't correct it. |
|
digizar
Senior Member Joined: Dec 30 2015 Location: Germany Frankfu Status: Offline Points: 742 |
Post Options
Thanks(0)
|
|
|
___________________________________
Ask questions only if there is no answer yet. https://blumendigi.com |
|
DHill18
Newbie Joined: Mar 31 2018 Location: Salem, OR USA Status: Offline Points: 7 |
Post Options
Thanks(0)
|
Thanks for the reply, but adding a free script with the correct code doesn't change the program's behavior; it still puts the wrong syntax code at the top of the file which causes the access error:
I even tried adding "#Protect .htaccess" to the script in the hopes it would override OpenElement's version, but it just adds the free script to the bottom of the file, the wrong syntax gets run first from the top of the file, and the web access error recurs. There is no option in the 'Add a command' window for substituting the default "#Protect .htaccess" command, and the code sequence for the #Protect command doesn't appear in the 'Default commands'. |
|
Dmit OE
Admin Group Joined: May 31 2012 Status: Offline Points: 5283 |
Post Options
Thanks(1)
|
Hi.
A huge amount of websites use this code, which is why Apache provides a compatibility workaround. Is there a way to enable the compatibility module mod_access_compat ? (as seen here https://httpd.apache.org/docs/2.4/upgrading.html#page-header ) |
|
DHill18
Newbie Joined: Mar 31 2018 Location: Salem, OR USA Status: Offline Points: 7 |
Post Options
Thanks(0)
|
I don't manage my providers servers, and I'm sure I'm not the only OpenElement user in this situation.
I need a way to change the .httaccess file code that OpenElement is pushing up to the server whenever I send page updates. As things stand now, I have to edit the .httaccess syntax in my web site's directory on the server after each update. And yes, I got an email last weekend from our society's president who tried to access the site during the time it was taking me to edit the file - it happens, and I'm sure our site isn't all that busy. So I have to think that others are also having issues. We need access to the code from OpenElement. |
|
DHill18
Newbie Joined: Mar 31 2018 Location: Salem, OR USA Status: Offline Points: 7 |
Post Options
Thanks(0)
|
Sorry, that font size looks like I was yelling! I'm not really.
|
|
Dmit OE
Admin Group Joined: May 31 2012 Status: Offline Points: 5283 |
Post Options
Thanks(0)
|
I note this issue; meanwhile, your options:
- When publishing the website via OE, you can manually uncheck .htaccess to prevent it from uploading. - Check your provider's settings (if you have Control Panel of any kind) or contact them to as whether the compatibility module mod_access_compat can be activated. It looks very strange to me that they don't activate it, maybe they had technical reasons but they may still activate it selectively for your account? |
|
DHill18
Newbie Joined: Mar 31 2018 Location: Salem, OR USA Status: Offline Points: 7 |
Post Options
Thanks(0)
|
Preventing OpenElement from uploading the file would be a workable solution.
How is this done?
|
|
DHill18
Newbie Joined: Mar 31 2018 Location: Salem, OR USA Status: Offline Points: 7 |
Post Options
Thanks(0)
|
Sorry. Never mind I found it when I published a page.
Solution works great. Much simpler than revising the file every time, and there's no down time.
|
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |