Visualizzazione 0 filoni di risposte
Visualizzazione 0 filoni di risposte
- Devi essere connesso per rispondere a questo topic.
Email: info@wpitaly.it
Home › Forum › Problemi Vari con WP › File js in php ed errore 404
Ciao a tutti,
e’ un bel po’ di tempo che mi assilla un problema di cui non vengo a capo..
Premetto gia’ da ora che il seguente problema si presenta soltanto se attivo una qualsiasi forma di riscrittura dei permalink (ho provato varie forme.. /%postname%/, /%postname%.htm, anno/mese/giorno/)..
Se utilizzo invece il permalink di default (?p=123
per intenderci), tutto fila liscio..
Utilizzo un tema che utilizza files javascript con dentro del php, per cui nella directory
<www-root>/subdir/wp-content/themes/nometema/js/
c’e’ un ipotetico pippo.js.php, che viene poi richiamato con
<script type=\"text/javascript\" src=\"http://xxxxxx/subdir/wp-content/themes/nometema/js/pippo.js.php\"></script>
Il problema che ho e’ questo… la richiesta del file al webserver avviene correttamente.. rispedisce pure i dati corretti senza warning o errori di php… (provando a richiedere in browser l’src sopra indicato torna tutto corretto)… peccato che mi torna con http status 404, ed il problema e’ che caricando l’index del sito, e’ come se questo javascript non venisse trovato (funzioni js mancanti ecc)..
Ho provato di tutto.. mod_php, php in cgi, php4, php5, windows, linux… niente..
Ma finche’ lascio attiva qualsiasi forma di riscrittura permalink, torna con 404..
Per assurdo, ho provato a lasciare attivi i permalink, ma a cancellare l’.htaccess e… a parte che non funziona piu’ nulla se non l’homepage, comunque il file suddetto torna 404 (escludo quindi cavolate nell’.htaccess fra le possibili cause..)
Idee/consigli?!
WPItaly - Copyright Creative Commons: CC BY-NC-SA 4.0