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

openElement

> Error Reports
  New Posts New Posts RSS Feed - .htaccess & robots.txt [SOLVED]
  FAQ FAQ  Forum Search   Register Register  Login Login

.htaccess & robots.txt [SOLVED]

 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: .htaccess & robots.txt [SOLVED]
    Posted: Jul 20 2017 at 10:50pm
I still have some minor trouble to figure out how to modify the htaccess file content inside oe.
> Project  > htacess ... command list.
I can't get rid of the first block of entries, the Files .htaccess
How to get rid of those *oder allow, deny* ... stuff?
Or at least how to change the content there.

Also - how to modify the robots.txt with oe?

Thanks for response, not in a hurry.
-digi- still much to learn, but getting along.

(Yes, I know I could combine the Free Script in one bunch, and that these values create some headache for the server. So don't look for the syntax.)


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

#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>

#FreeScript
Header add "disablevcache" "true"
order allow, deny
allow from all

Edited by digizar - Jul 25 2017 at 2:20pm
___________________________________
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: Jul 20 2017 at 11:29pm
Hi,

The first block may be rather important (depending on server configuration), protecting .htaccess files from being accessed by HTTP. I don't see why it can pose problems as it is not affecting any other content.

The rest, starting from #FreeScript, you can modify or remove.

To edit robots.txt in OE, use Project->Preferences->Expert tab, on the bottom-right (you may need to scroll down). I believe that you can disable managing robots.txt by OE, to be able to edit it manually if you prefer so, but I've never tested it.
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: Jul 20 2017 at 11:48pm
Thanks, will do and report.
It just came up because I expected to to be able to modify the complete text.
Handling is somehow in'compatible', but hey, if it works, you are right. .-)


Edited by digizar - Jul 20 2017 at 11:49pm
___________________________________
Ask questions only if there is no answer yet.
https://blumendigi.com
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: Jul 23 2017 at 7:01pm
Report as promised. Solved.
I could manage it with the oe tool.

htaccess


robots



Edited by digizar - Jul 24 2017 at 4:06pm
___________________________________
Ask questions only if there is no answer yet.
https://blumendigi.com
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.078 seconds.