This question about Not sure...: Answered

How can I add files in a level BELOW a Web?

When I visit "mywikidomain.com", I am automatically lead to mywikidomain.com/Main/

How can I add a file into mydomain.com/myfile.jpg ?

Where shall I save it?

-- LieVen - 17 Sep 2015

Hi Lieven, The web interface only supports adding attachments to topics. Attachments are always in the pub directory. so mywikidomain/pub/Main/SomeTopic/attachment. Your data directories should never be directly web accessible, so files below a web wouldn't be useful.

-- GeorgeClark - 18 Sep 2015

Okay, your explanation makes sense. My reason for asking was that I'd like to include a Google analysis tool, and they require to add a specific html file into the "top level" of your website. It has to be mywikidomain.com/Googlething.html - So there is no chance to do that?

The alternative procedure is adding an HTML tag into the "head" of the starting page. Which one would that be? The one that opens first? (like http://foswiki.org/Home/WebHome ?)

edit: I just tried and it works. Question answered.

-- LieVen - 05 Oct 2015

Hi LieVen, To add the google special file, it usually requires direct server access.
  • Copy the file into the foswiki directory, (or wherever the server would resolve http://yoursite.com/googlethingy.html.
  • Modify your Apache configuration to permit it to serve an HTML file from the root, (Avoiding rewriting for short URL.) Usually that means adding an Alias statement similar to that needed for robots.txt
     
    Alias /robots.txt "/var/www/foswiki/robots.txt"
    Alias /googletokenfile.html "/var/www/foswiki/googletokenfile.html"
    

-- GeorgeClark - 07 Oct 2015
 

QuestionForm edit

Subject Not sure...
Extension
Version Foswiki 1.1.9
Status Answered
Related Topics
Topic revision: r5 - 07 Oct 2015, GeorgeClark - This page was cached on 17 Dec 2017 - 06:11.

The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License