BullGuard Antivirus Sale - 60% Off with openElement !
Forum Home Forum Home >

openElement

> Error Reports
  New Posts New Posts RSS Feed - 1.57.7 .htaccess server invalid command
  FAQ FAQ  Forum Search   Register Register  Login Login

1.57.7 .htaccess server invalid command

 Post Reply Post Reply
Author
Message
digizar View Drop Down
Senior Member
Senior Member
Avatar

Joined: Dec 30 2015
Location: Germany Frankfu
Status: Offline
Points: 739
Post Options Post Options   Thanks (0) Thanks(0)   Quote digizar Quote  Post ReplyReply Direct Link To This Post Topic: 1.57.7 .htaccess server invalid command
    Posted: Apr 07 2017 at 8:40pm
My Domain provider *one.com* refused the web.page.
It turned out that the .htaccess contained an 'invalid' entry (for that domain):
# You can delete the following block if your hosting provider is not Free.fr:
That whole following block (bold) could/should/must be removed -
Project ... Htaccess ... Properties ...

#Protect .htaccess
<Files .htaccess>
order allow,deny
deny from all
</Files>

#FreeScript
AddType video/ogg .ogg
AddType video/ogg .ogv
AddType video/mp4 .mp4
AddType video/mp4 .m4v
AddType video/mp4 .mov
AddType video/webm .webm

#FreeScript
AddDefaultCharset UTF-8
<IfDefine !Free>
<IfModule  mod_headers.c>
Header set Cache-Control "private, max-age=0, must-revalidate"
Header set X-UA-Compatible "IE=8; IE=9; IE=10"
</IfModule>
</IfDefine>

Header add "disablevcache" "true"# You can delete the following block if your hosting provider is not Free.fr:
<IfDefine Free>
php56 1
</IfDefine>

_____________________________


Edited by digizar - Apr 07 2017 at 8:51pm
___________________________________
Ask questions only if there is no answer yet.
https://blumendigi.com
Back to Top
Dmit OE View Drop Down
Admin Group
Admin Group


Joined: May 31 2012
Status: Offline
Points: 5283
Post Options Post Options   Thanks (0) Thanks(0)   Quote Dmit OE Quote  Post ReplyReply Direct Link To This Post Posted: Apr 08 2017 at 10:14am
Hi,

Did you have all this on one line:

Header add "disablevcache" "true"# You can delete the following block if your hosting provider is not Free.fr:

or was it in two lines:

Header add "disablevcache" "true"
# You can delete the following block if your hosting provider is not Free.fr:

Could you try to just delete
# You can delete the following block if your hosting provider is not Free.fr:

and leave the following to test if the page will work that way:



<IfDefine Free>
php56 1
</IfDefine>


To edit this, use Project->Htaccess and edit the Default entry.
Back to Top
digizar View Drop Down
Senior Member
Senior Member
Avatar

Joined: Dec 30 2015
Location: Germany Frankfu
Status: Offline
Points: 739
Post Options Post Options   Thanks (0) Thanks(0)   Quote digizar Quote  Post ReplyReply Direct Link To This Post Posted: Apr 08 2017 at 11:31am
Yes, it appeared in one line, directly appended to my content, no space in between.
Since it took me 'some time' to find out (finally with the help of one.com), I had the impression that someone else could be trapped, too. So I made it public.
I removed the whole chunk (as recommended).
Probably I installed the openElement-1577 in setup version 'french'?

I tried to re-add the line as you requested, but on a new line.
It works fine.
So the culprit might be that my instruction did not end with a complete new line.
The file content might have just ended right after the "true" w/o line termination.

The Header add "disablevcache" "true" is a requirement of my provider, so he enables an instant access to newly uploaded file. Otherwise I would have to wait 5 minutes to see the modified version online.

Else, all my five websites converted and are running ok with 1577. No modifications were neccessary.
That IS a GREAT TOOL.


Edited by digizar - Apr 08 2017 at 2:07pm
___________________________________
Ask questions only if there is no answer yet.
https://blumendigi.com
Back to Top
Dmit OE View Drop Down
Admin Group
Admin Group


Joined: May 31 2012
Status: Offline
Points: 5283
Post Options Post Options   Thanks (1) Thanks(1)   Quote Dmit OE Quote  Post ReplyReply Direct Link To This Post Posted: Apr 08 2017 at 12:47pm
Yes it is very important that you reported this one, I will fix is ASAP (by adding a new line before #).
Back to Top
digizar View Drop Down
Senior Member
Senior Member
Avatar

Joined: Dec 30 2015
Location: Germany Frankfu
Status: Offline
Points: 739
Post Options Post Options   Thanks (0) Thanks(0)   Quote digizar Quote  Post ReplyReply Direct Link To This Post Posted: Apr 08 2017 at 2:11pm
Originally posted by Dmit OE Dmit OE wrote:

Yes it is very important that you reported this one, I will fix is ASAP (by adding a new line before #).
Good boy Hug
I would recommend, to add such newline before any of the parameter/blocks you intersperse.
I hope it is not too late this time. On the other hand, man can not think about every constellation.


Edited by digizar - Apr 08 2017 at 2:14pm
___________________________________
Ask questions only if there is no answer yet.
https://blumendigi.com
Back to Top
Dmit OE View Drop Down
Admin Group
Admin Group


Joined: May 31 2012
Status: Offline
Points: 5283
Post Options Post Options   Thanks (0) Thanks(0)   Quote Dmit OE Quote  Post ReplyReply Direct Link To This Post Posted: Apr 08 2017 at 9:11pm
It's fixed for next version that will hopefully be released in a couple of days
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.063 seconds.