SID-00546: These pages do not need to be accessible by browsers.
| Status: |
Answered |
TWiki version: |
4.3.2 |
Perl version: |
unknown - automatic install |
| Category: |
CategoryInstallation |
Server OS: |
Linux |
Last update: |
13 years ago |
I've sucessfully installed Twiki (2nd time), and on the opening page, I just want to remove the notice: Note: These pages do not need to be accessible by browsers.
I've searched unsucessfully in the documentaiton, this forum and on Google but I cannot find any directions.
Tried deleting INSTALL.html and various files in the root directory and had to put them back again.
Many thanks for any assistance
--
TonyMurray - 2009-10-01
Discussion and Answer
This is the
index.html file in your
twiki root directory. Configure Apache to either redirect from there to your TWiki homepage URL, or better, to remove the twiki root from being an html doc root, set
twiki/pub as html doc root and
twiki/bin as cgi enabled directory.
--
PeterThoeny - 2009-10-01
This works!
-Open install directory as root (use nautilus "open as administrator" plugin i.e.)
-rename index.html to old_index,html
-right click in nautilus window and "create new document > empty document"
-name this document index.php
- copy and paste this code into the editor window that pops up;
<?php header("HTTP/1.1 301 Moved Permanently"); header("Location:
http://localhost/ReplaceThisWithYourHomeDirectoryNameHere/bin/view/Main/WebHome"
;); exit(); ?>
-"localhost" can be replaced with your domain name, ip host name...
-ReplaceThiswithYourHomeDirectoryNameHere ... would be your wiki directory name that you used when setting up your wiki
- save and exit the editor
-Right click on this index.php file >Properties>Permissions
-Owner: (mine is www-data) (yours might be different.. if your wiki is working then just right click on old_index.html and check the permissions on that.. make index.php match those settings)
-Access; same as above permissions on old_index.html
-Group: same as above permissions on old_index.html Access: same as above permissions on old_index.html
-Close permissions
-in browser window type this to check the redirect from index.php>
http://localhost/ReplaceThisWithYourHomeDirectoryNameHere/
-press enter..
-your browser should redirect to your Webhome @ >
http://localhost/ReplaceThisWithYourHomeDirectoryNameHere/bin/view/Main/WebHome
Hope this helps? Try to find a simple answer to something so confusing... good luck
--
AmperSun - 2012-12-31
I recommend to disable PHP on a TWiki server for security reasons. You can use an HTML meta redirect, or an Apache rewrite rule to redirect to a page of choice.
--
PeterThoeny - 2012-12-31
If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.