Kann man die Seite offline setzen

In this board you can talk about general questions about phpMyFAQ

Moderator: Thorsten

Post Reply
Bogus
Posts: 32
Joined: Sat Dec 27, 2003 10:57 am
Contact:

Kann man die Seite offline setzen

Post by Bogus » Tue May 02, 2006 9:37 am

Hallo ;D

Kann man PHPmyfaq in den sogenannten "Wartungsmodus" setzen ?

danke in vorraus ;D

Thorsten
Posts: 14783
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten » Tue May 02, 2006 1:08 pm

Hi,

nein, nicht im System selber.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist

Bogus
Posts: 32
Joined: Sat Dec 27, 2003 10:57 am
Contact:

Post by Bogus » Tue May 02, 2006 1:13 pm

hi ,)

wo denn dann ?

danke in vorraus ;D

Thorsten
Posts: 14783
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten » Tue May 02, 2006 1:15 pm

Hi,

eine .htaccess mit Weiterleitung wäre eine Lösung.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist

Bogus
Posts: 32
Joined: Sat Dec 27, 2003 10:57 am
Contact:

Post by Bogus » Tue May 02, 2006 1:22 pm

nicht wirklich, ausser man könnte dann die faq noch weiter bearbeiten ;D


Trotzdem danke für die Antwort ;D

Thorsten
Posts: 14783
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten » Tue May 02, 2006 1:27 pm

Hi,

stimmt... :-(

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist

klausing
Posts: 89
Joined: Fri Oct 14, 2005 11:46 am

Post by klausing » Tue May 02, 2006 1:28 pm

Kann man nicht vorrübergehend die index.php einfach umbenennen und statt dessen eine andere index.php in den Ordner packen?

Thorsten
Posts: 14783
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten » Tue May 02, 2006 1:35 pm

Hi,

das ginge...

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist

Bogus
Posts: 32
Joined: Sat Dec 27, 2003 10:57 am
Contact:

Post by Bogus » Tue May 02, 2006 1:46 pm

klausing wrote:Kann man nicht vorrübergehend die index.php einfach umbenennen und statt dessen eine andere index.php in den Ordner packen?
auch ne Idee ;D

Mini
Posts: 63
Joined: Mon May 08, 2006 11:11 pm

Post by Mini » Wed May 17, 2006 9:21 pm

Die sicherste Methode wäre aber ne HTACCESS...so mach ich es...85.123.121.98 is eine fiktive IP. Die musst Du durch die IP Deines Servers ersetzen.

Code: Select all

Order deny,allow
deny from all
Allow from 85.123.121.98
Allow from deineIP

# HTML für individuelle Fehleranzeige
ErrorDocument 403 "<html><head><title>Wartungsmodus</title>\
                   <style type='text/css'>\
                   body {background-color:#EEEEEE;}\
                   h1,p,a {font-family:Helvetica,Arial,Sans-serif;}\
                   h1 {font-size:1.7em; margin-bottom:0em;}\
                   p {font-size:0.95em;}\
                   a {font-size:0.93em; text-decoration:none;}\
                   a:link,a:visited {color:#000080;}\
                   a:hover {color:#FF0000;}\
                   </style>\
                   </head><body>\
                   <h1>Wartungsmodus</h1>\
                   <p>Die Seite befindet sich derzeit in Ãœberarbeitung. Bitte besuchen Sie uns bald wieder.</p>\
                   </body></html>"

matteo
Posts: 572
Joined: Sun Nov 20, 2005 6:53 pm
Location: Italy

Another way of using .htaccess when PMF is under maintenance

Post by matteo » Sun Jun 04, 2006 1:37 pm

Hi,
you could achieve the same behaviour using PMF .htaccess w/ this hack below:

Code: Select all

...
# if you want to use mod_rewrite, set this 'On'
RewriteEngine On

# the path to your phpMyFAQ installation
RewriteBase /phpmyfaq/

# Maintenance Section
# Write below your client IP address to keep your web access during maintenance
#RewriteCond %{REMOTE_ADDR}         !^127.0.0.1$ [C]
# a. you can simply forbid access (HTTP 403 Error)
#RewriteRule ^(.*)$                  [F,L]
# b. or return the user an explanation
#RewriteRule ^(.*)$                  underMaintenance.htm [L]
...
phpMyFAQ QA / Developer
Amazon.co.uk Wishlist

matteo
Posts: 572
Joined: Sun Nov 20, 2005 6:53 pm
Location: Italy

FIX the previous post!

Post by matteo » Sun Jun 04, 2006 10:30 pm

Please use the code in this post: the previous one is bugged.

Code: Select all

...
# if you want to use mod_rewrite, set this 'On'
RewriteEngine On

# the path to your phpMyFAQ installation
RewriteBase /phpmyfaq/

# Maintenance Section - Uncomment the lines below according to your need
# Write below your client IP address (e.g.: 127.0.0.1)
# if you need to keep your web access during maintenance
#RewriteCond %{REMOTE_ADDR}          !^127.0.0.1$
# Choose your way of closing the access to PMF:
# a. you can simply forbid access (HTTP 403 Error)
#RewriteRule ^(.*)$                  underMaintenance.htm [F,L]
# b. return the user an explanation
#RewriteRule ^(.*)$                  underMaintenance.htm [L]
...
phpMyFAQ QA / Developer
Amazon.co.uk Wishlist

Post Reply