phpBB Italia chiude!
phpBB Italia ringrazia tutti gli utenti che hanno dato fiducia al nostro progetto per ben 9 anni, e che, grazie al grande lavoro fatto da tutto lo Staff (rigorosamente a titolo gratuito), hanno portato il portale a diventare il principale punto di riferimento italiano alla piattaforma phpBB.

Purtroppo, causa motivi personali, non ho più modo di gestirlo e portarlo avanti. Il forum viene ora posto in uno stato di sola lettura, nonché un archivio storico per permettere a chiunque di fruire di tutte le discussioni trattate.

Il nuovo portale di assistenza per l'Italia di phpBB diventa phpBB-Store.it, cui ringrazio per aver deciso di portare avanti questo grande progetto.

Grazie ancora,
Carlo - Amministratore di phpBB Italia

[Wiki]Come aggiungere pagine personalizzate d'errore

Programmare su phpBB, creazione di pagine personalizzate ed utilizzo delle API di phpBB.
Avatar utente
Barrnet
Leader Moderatori
Leader Moderatori
Messaggi: 3124
Iscritto il: 04/07/2010, 23:31
Sesso: Maschio
Versione: 3.0.10
Server: UNIX/Linux
PHP: 5.3.10
Database: MySQL 5.1.61-community-log
Contatta:

[Wiki]Come aggiungere pagine personalizzate d'errore

Messaggio da Barrnet » 02/04/2012, 16:31


juventissimo
Utente
Utente
Messaggi: 243
Iscritto il: 11/12/2011, 12:21
Sesso: Maschio
Versione: 3.0.12
Server: UNIX/Linux
PHP: 5.3.28
Database: MySQL 5.5.36-34.2-log
Contatta:

Re: Come aggiungere pagine personalizzate d'errore

Messaggio da juventissimo » 25/04/2012, 0:37

io ho fatto tutto, adesso però ho un problema...

così vedo la pag 404

vedo questo

allora mi chiedo il .htaccess che devo modificare è quello del forum? o quello che ho nella root.

io nella root ho il sito in joomla con il suo .htaccess e nella cartella forum, dove ci sono tutti i file del forum è presente un'altro .htaccess
il problema che sul secondo link messo mi da il solito msg di errore Apache... e c'e il link della home page, ma invece di andare sul forum mi va proprio sul sito...
quindi a mio avviso c'e qualcosa non mi quadra :(

Avatar utente
Barrnet
Leader Moderatori
Leader Moderatori
Messaggi: 3124
Iscritto il: 04/07/2010, 23:31
Sesso: Maschio
Versione: 3.0.10
Server: UNIX/Linux
PHP: 5.3.10
Database: MySQL 5.1.61-community-log
Contatta:

Re: Come aggiungere pagine personalizzate d'errore

Messaggio da Barrnet » 09/05/2012, 14:03

Il tuo primo errore è per via del formato: la pagina deve essere in .php non in .phpss
Prova a fare la modifica nel .htaccess nella root al posto di quello nella cartella di phpBB.

juventissimo
Utente
Utente
Messaggi: 243
Iscritto il: 11/12/2011, 12:21
Sesso: Maschio
Versione: 3.0.12
Server: UNIX/Linux
PHP: 5.3.28
Database: MySQL 5.5.36-34.2-log
Contatta:

Re: Come aggiungere pagine personalizzate d'errore

Messaggio da juventissimo » 09/05/2012, 19:26

forse mi sono spiegato male...
il *.phpss è voluto, perché se lo metto così mi viene fuori la pagina di errore nel forum, invece scrivo una qualsiasi altra cosa come riferimento mi da il solito errore :(

Avatar utente
Barrnet
Leader Moderatori
Leader Moderatori
Messaggi: 3124
Iscritto il: 04/07/2010, 23:31
Sesso: Maschio
Versione: 3.0.10
Server: UNIX/Linux
PHP: 5.3.10
Database: MySQL 5.1.61-community-log
Contatta:

Re: Come aggiungere pagine personalizzate d'errore

Messaggio da Barrnet » 09/05/2012, 20:29

Teoricamente dovrebbe andare anche con il .php, hai modificato il .htaccess nella root?

juventissimo
Utente
Utente
Messaggi: 243
Iscritto il: 11/12/2011, 12:21
Sesso: Maschio
Versione: 3.0.12
Server: UNIX/Linux
PHP: 5.3.28
Database: MySQL 5.5.36-34.2-log
Contatta:

Re: Come aggiungere pagine personalizzate d'errore

Messaggio da juventissimo » 09/05/2012, 22:30

la pagina che vedo con:
- errore 401: http://totalracingsim.altervista.org/forum/401.php
- errore 404: http://totalracingsim.altervista.org/forum/404.php
- errore 500: http://totalracingsim.altervista.org/forum/500.php
- errore 504: http://totalracingsim.altervista.org/forum/504.php
ma se metti caso indicizzassi una pagina che ho cancellato l'errore non me lo da... viene fuori quello di dofault... stessa cose a riguardo delle altre.

.htaccess ne ho 2 quello nella root del sito e quella dentro allla cartella forum

/index.php (qui ho il sito con joomla)
/forum/index.php (qui c'e il forum)
in entrambe è presente il .htaccess quale devo modificare???

Avatar utente
Barrnet
Leader Moderatori
Leader Moderatori
Messaggi: 3124
Iscritto il: 04/07/2010, 23:31
Sesso: Maschio
Versione: 3.0.10
Server: UNIX/Linux
PHP: 5.3.10
Database: MySQL 5.1.61-community-log
Contatta:

Re: Come aggiungere pagine personalizzate d'errore

Messaggio da Barrnet » 09/05/2012, 22:39

Quello di joomla, come ti ho detto sopra :)

juventissimo
Utente
Utente
Messaggi: 243
Iscritto il: 11/12/2011, 12:21
Sesso: Maschio
Versione: 3.0.12
Server: UNIX/Linux
PHP: 5.3.28
Database: MySQL 5.5.36-34.2-log
Contatta:

Re: Come aggiungere pagine personalizzate d'errore

Messaggio da juventissimo » 09/05/2012, 22:44

domani riprovo a rimodificarlo, vediamo se sono piu fortunato...
per il momento grazie mille ti faro sapere.
gentilissimo
ciaoooo notte!!!

juventissimo
Utente
Utente
Messaggi: 243
Iscritto il: 11/12/2011, 12:21
Sesso: Maschio
Versione: 3.0.12
Server: UNIX/Linux
PHP: 5.3.28
Database: MySQL 5.5.36-34.2-log
Contatta:

Re: Come aggiungere pagine personalizzate d'errore

Messaggio da juventissimo » 10/05/2012, 21:19

non ne vado fuori :evil:
questo è .htaccess nella root del sito

Codice: Seleziona tutto

##
# @version		$Id: htaccess.txt 21101 2011-04-07 15:47:33Z dextercowley $
# @package		Joomla
# @copyright	Copyright (C) 2005 - 2011 Open Source Matters. All rights reserved.
# @license		GNU General Public License version 2 or later; see LICENSE.txt
##

##
# READ THIS COMPLETELY IF YOU CHOOSE TO USE THIS FILE!
#
# The line just below this section: 'Options +FollowSymLinks' may cause problems
# with some server configurations.  It is required for use of mod_rewrite, but may already
# be set by your server administrator in a way that dissallows changing it in
# your .htaccess file.  If using it causes your server to error out, comment it out (add # to
# beginning of line), reload your site in your browser and test your sef url's.  If they work,
# it has been set by your server administrator and you do not need it set here.
##

## Can be commented out if causes errors, see notes above.
Options +FollowSymLinks

## Mod_rewrite in use.

RewriteEngine On

## Begin - Rewrite rules to block out some common exploits.
# If you experience problems on your site block out the operations listed below
# This attempts to block the most common type of exploit `attempts` to Joomla!
#
# Block out any script trying to base64_encode data within the URL.
RewriteCond %{QUERY_STRING} base64_encode[^(]*\([^)]*\) [OR]
# Block out any script that includes a <script> tag in URL.
RewriteCond %{QUERY_STRING} (<|%3C)([^s]*s)+cript.*(>|%3E) [NC,OR]
# Block out any script trying to set a PHP GLOBALS variable via URL.
RewriteCond %{QUERY_STRING} GLOBALS(=|\[|\%[0-9A-Z]{0,2}) [OR]
# Block out any script trying to modify a _REQUEST variable via URL.
RewriteCond %{QUERY_STRING} _REQUEST(=|\[|\%[0-9A-Z]{0,2})
# Return 403 Forbidden header and show the content of the root homepage
RewriteRule .* index.php [F]
#
## End - Rewrite rules to block out some common exploits.

## Begin - Custom redirects
#
# If you need to redirect some pages, or set a canonical non-www to
# www redirect (or vice versa), place that code here. Ensure those
# redirects use the correct RewriteRule syntax and the [R=301,L] flags.
#
## End - Custom redirects

##
# Uncomment following line if your webserver's URL
# is not directly related to physical file paths.
# Update Your Joomla! Directory (just / for root).
##

# /* modifica */
RewriteBase /
# /* fine */

## Begin - Joomla! core SEF Section.
#
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
#
# If the requested path and file is not /index.php and the request
# has not already been internally rewritten to the index.php script
RewriteCond %{REQUEST_URI} !^/index\.php
# and the request is for something within the component folder,
# or for the site root, or for an extensionless URL, or the
# requested URL ends with one of the listed extensions
RewriteCond %{REQUEST_URI} /component/|(/[^.]*|\.(php|html?|feed|pdf|vcf|raw))$ [NC]
# and the requested path and file doesn't directly match a physical file
RewriteCond %{REQUEST_FILENAME} !-f
# and the requested path and file doesn't directly match a physical folder
RewriteCond %{REQUEST_FILENAME} !-d
# internally rewrite the request to the index.php script
RewriteRule .* index.php [L]
#
## End - Joomla! core SEF Section.

# /* modifica */
# # av:php5-engine
AddHandler av-php5 .php
# /* fine */

    ErrorDocument 401 http://totalracingsim.altervista.org/forum/401.php
    ErrorDocument 404 http://totalracingsim.altervista.org/forum/404.php
    ErrorDocument 500 http://totalracingsim.altervista.org/forum/500.php
    ErrorDocument 503 http://totalracingsim.altervista.org/forum/503.php
questo è .htaccess nella cartella forum nel mio sito

Codice: Seleziona tutto

#
# Uncomment the statement below if you want to make use of
# HTTP authentication and it does not already work.
# This could be required if you are for example using PHP via Apache CGI.
#
#<IfModule mod_rewrite.c>
#RewriteEngine on
#RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L]
#</IfModule>

<Files "config.php">
Order Allow,Deny
Deny from All
</Files>

<Files "common.php">
Order Allow,Deny
Deny from All
</Files>

# # av:php5-engine
AddHandler av-php5 .php

    ErrorDocument 401 http://totalracingsim.altervista.org/forum/401.php
    ErrorDocument 404 http://totalracingsim.altervista.org/forum/404.php
    ErrorDocument 500 http://totalracingsim.altervista.org/forum/500.php
    ErrorDocument 503 http://totalracingsim.altervista.org/forum/503.php

Avatar utente
Barrnet
Leader Moderatori
Leader Moderatori
Messaggi: 3124
Iscritto il: 04/07/2010, 23:31
Sesso: Maschio
Versione: 3.0.10
Server: UNIX/Linux
PHP: 5.3.10
Database: MySQL 5.1.61-community-log
Contatta:

Re: Come aggiungere pagine personalizzate d'errore

Messaggio da Barrnet » 10/05/2012, 22:26

A quando pare è joomla che crea interferenze, avendo un suo modo di gestire gli errori... cerca via ftp se joomla ha qualche file per gestire queste pagine ;)

Un tentativo che puoi fare è spostare il codice che impone le pagine d'errore di phpbb3 in cima, in modo che siano le prime ad essere lette, magari funziona...

Bloccato

Torna a “Programmazione”

Chi c’è in linea

Visitano il forum: Nessuno e 39 ospiti