- Home
 - Categorie
 - Coding e Sistemistica
 - Coding
 - Pagine dinamiche
 
- 
							
							
							
							
							
niente scrive
The requested URL /www.tenutagoroveneto.it/httpdocs/agriturismo/agriturismo/bed-breakfast.php was not found on this server.
quello che da fastidio è httpdocs
 - 
							
							
							
							
							
dipende se il tuo server è configurato così....cioè tiene il nome di dominio in una sottodirectory e i file html e php nella dir httpdocs.....dovrebbe funzionare....può pure essere un problema di configurazione
 - 
							
							
							
							
							
e allora secondo te cosa c'è che non va?
 - 
							
							
							
							
							
ma non so dovrei sapere com'è configurato il server....potrebbe essere un problema di permessi.....di directory....di scripting engine
 - 
							
							
							
							
							
@Tdz said:
e allora secondo te cosa c'è che non va?il server è tuo o sei su hosting?
Prova a dare la dir assoluta, non relativa:
/agriturismo/...
 - 
							
							
							
							
							
Ma che cosa hai linux?
 - 
							
							
							
							
							
sono su hosting linux

 - 
							
							
							
							
							
@PaTeR said:
@Tdz said:
e allora secondo te cosa c'è che non va?il server è tuo o sei su hosting?Prova a dare la dir assoluta, non relativa:
/agriturismo/...
in che senso la dir assoluta?
 - 
							
							
							
							
							
@Tdz said:
@PaTeR said:
@Tdz said:
e allora secondo te cosa c'è che non va?il server è tuo o sei su hosting?Prova a dare la dir assoluta, non relativa:
/agriturismo/...
in che senso la dir assoluta?
invece di
agriturismo/...
prova a dare
/agriturismo/
 - 
							
							
							
							
							
@Tdz said:
- link in index.php
 
[url="<?php echo $URI ?>agriturismo/bed-breakfast-<?php echo $row3['id']; ?>.html"]"><?php echo $row3['h1']; ?>- errore dato dal server
 
Not Found
The requested URL /www.tenutagoroveneto.it/httpdocs/agriturismo/bed-breakfast.php was not found on this server.cosa contiene la variabile
$URI ?
possibile che ti restituisca: /www.tenutagoroveneto.it/httpdocs/agriturismomentre dovrebbe restituire: http://www.tenutagoroveneto.it/ ?
 - 
							
							
							
							
							
nisba...
questo è l' .htaccess
RewriteEngine on RewriteRule ^/agriturismo/bed-breakfast-([^/]+).html bed-breakfast.php?id=$1 [L]questo l'errore
Not Found The requested URL /agriturismo/bed-breakfast-1.html was not found on this server.
 dai che ce la facciamo
 - 
							
							
							
							
							
@Jantima said:
@Tdz said:
- link in index.php
 
[url="<?php echo $URI ?>agriturismo/bed-breakfast-<?php echo $row3['id']; ?>.html"]"><?php echo $row3['h1']; ?>cosa contiene la variabile
$URI ?
possibile che ti restituisca: /www.tenutagoroveneto.it/httpdocs/agriturismomentre dovrebbe restituire: http://www.tenutagoroveneto.it/ ?
La variabile $URI contiene http://www.tenutagoroveneto.it/ ... grazie dell'aiuto

 - 
							
							
							
							
							
Prova a togliere o cambiare la regola e fai delle prove finchè non trovi la soluzione che ti serve.
Prova a mettere:
AllowOverride All
prima di
RewriteEngine onForse la regola che usi è sbagliata e ti da questo effetto, ma non saprei dire come cambiarla

:bho:Com'è che hai postato 3 "errori del server diversi in 3 post?
errore dato dal server
Not Found
The requested URL /www.tenutagoroveneto.it/httpdocs/agriturismo/bed-breakfast.php was not found on this server.niente scrive:
The requested URL /www.tenutagoroveneto.it/httpdocs/agriturismo/agriturismo/bed-breakfast.php was not found on this server.
questo l'errore:
Not Found
The requested URL /agriturismo/bed-breakfast-1.html was not found on this server.cosa hai cambiato nel frattempo?
 - 
							
							
							
							
							
@Tdz said:
nisba...
questo è l' .htaccess
RewriteEngine on RewriteRule ^/agriturismo/bed-breakfast-([^/]+).html bed-breakfast.php?id=$1 [L]questo l'errore
Not Found The requested URL /agriturismo/bed-breakfast-1.html was not found on this server.
 dai che ce la facciamo/agriturismo/bed-breakfast-1.htmlaggiungi il flag R alla rewriterule insieme alla L