Kann man die Seite offline setzen
Moderator: Thorsten
Kann man die Seite offline setzen
Hallo ;D
Kann man PHPmyfaq in den sogenannten "Wartungsmodus" setzen ?
danke in vorraus ;D
Kann man PHPmyfaq in den sogenannten "Wartungsmodus" setzen ?
danke in vorraus ;D
Hi,
nein, nicht im System selber.
bye
Thorsten
nein, nicht im System selber.
bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
amazon.de Wishlist
Hi,
eine .htaccess mit Weiterleitung wäre eine Lösung.
bye
Thorsten
eine .htaccess mit Weiterleitung wäre eine Lösung.
bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
amazon.de Wishlist
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>"
Another way of using .htaccess when PMF is under maintenance
Hi,
you could achieve the same behaviour using PMF .htaccess w/ this hack below:
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
Amazon.co.uk Wishlist
FIX the previous post!
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
Amazon.co.uk Wishlist