Back to top

Autore Topic: [RISOLTO] Errori 404 e vari dopo spostamento sito.  (Letto 2117 volte)

Offline Ghiepo

  • Appassionato
  • ***
  • Post: 207
    • Mostra profilo
[RISOLTO] Errori 404 e vari dopo spostamento sito.
« il: 23 Mag 2015, 16:14:36 »
Vi capitano mai quei giorni in cui la tecnologia vi si rivolta contro e non riuscite neanche ad accendere il computer?
Partiamo dal principio. In una sottocartella di un mio spazio web ho creato un sito di ecommerce...tutto ok. Lavoro in una società che ha due negozi con caratteristiche diverse quindi ho bisogno di due siti esteticamente uguali ma con contenuti diversi così ho fatto un backup del sito "campione" con Akeeba e l'ho ripristinato in una sottocartella del primo di questi due (www.mulliganindoorgolf.it), l'ho modificato come mi serviva e tutto ok, nessun problema. Quando si è trattato di fare anche l'altro www.mulligan.it/mulligan ho proceduto nello stesso modo ma..... non funziona! Vedo la Home Page correttamente ma quando seleziono un menu mi da errore 404 oppure mi fa vedere la pagina come se non avesse css, qualsiasi template usi. Il tutto se nelle impostazioni SEO della configurazione globale attivo URL SEF se invece lo disattivo, il sito si vede correttamente ma con url "vecchio stile".  Ovviamente ho rinominato htaccess.txt in .htaccess, l'hosting è lo stesso per tutti e due i siti e l'unica cosa che "non andava" in fase di controlli pre-rispristino era che Display Errors era On invece di Off per il resto tutti verdi.
Sono ormai 24 ore che googoleggio e cerco nel forum ma le soluzioni che ho trovato non risolvono il mio problema... non so più cosa fare! per ora all'indirizzo base www.mulligan.it ho messo un redirect sul sito che ho fatto inizialmente ma aggiungendo /mulligan si vede quello che non funziona. Vi sarei molto grato se poteste dare un'occhiata perchè non so più dove sbattere la testa... almeno datemi altri punti di vista da cui affrontare il problema, non so più dove sbattere la testa... ah l'avevo già detto... :o ;D
Giuseppe

Joomla 3.4.1
VM 3.0.8
« Ultima modifica: 25 Mag 2015, 23:28:50 da Ghiepo »

Offline tomtomeight

  • Global Moderator
  • Fuori controllo
  • ********
  • Post: 32046
  • Sesso: Maschio
  • Gli automatismi aiutano ma non insegnano nulla.
    • Mostra profilo
Re:Errori 404 e vari dopo spostamento sito.
« Risposta #1 il: 23 Mag 2015, 16:19:28 »
Rewritebase /cartella nel .htaccess del sito in sottocartella.

Offline Ghiepo

  • Appassionato
  • ***
  • Post: 207
    • Mostra profilo
Re:Errori 404 e vari dopo spostamento sito.
« Risposta #2 il: 23 Mag 2015, 17:51:41 »
Grazie Tomtomeight, per un attimo ho sperato... ma niente da fare.
Questo è il mio .htacces nella cartella in cui c'è il sito:

Codice: [Seleziona]
##
# @package    Joomla
# @copyright  Copyright (C) 2005 - 2015 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 disallows 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.
##

## No directory listings
IndexIgnore *

## Can be commented out if causes errors, see notes above.
Options +FollowSymlinks
Options -Indexes

## 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).
##

RewriteBase /mulligan

## 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 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.

Offline tomtomeight

  • Global Moderator
  • Fuori controllo
  • ********
  • Post: 32046
  • Sesso: Maschio
  • Gli automatismi aiutano ma non insegnano nulla.
    • Mostra profilo
Re:Errori 404 e vari dopo spostamento sito.
« Risposta #3 il: 23 Mag 2015, 17:56:22 »
A me non da errore. Vedo il tuo sito in sottocartella.

Offline Ghiepo

  • Appassionato
  • ***
  • Post: 207
    • Mostra profilo
Re:Errori 404 e vari dopo spostamento sito.
« Risposta #4 il: 23 Mag 2015, 18:03:12 »
ma vedi anche le varie voci di menù? la Home la vedo correttamente anch'io il resto no.

Offline Ghiepo

  • Appassionato
  • ***
  • Post: 207
    • Mostra profilo
Re:Errori 404 e vari dopo spostamento sito.
« Risposta #5 il: 23 Mag 2015, 18:06:11 »
io ho provato da linux, mac, windows con ie ff chrome ma sempre stesso risultato, HP si resto no...
su www.mulligan.it/mulligan

Offline Ghiepo

  • Appassionato
  • ***
  • Post: 207
    • Mostra profilo
Re:Errori 404 e vari dopo spostamento sito.
« Risposta #6 il: 24 Mag 2015, 19:37:27 »
Ma potrebbe essere che il server non ha il mod rewrite on?
Ho messo un file .htaccess così:
Codice: [Seleziona]
RewriteEngine On Options +FollowSymLinks RewriteRule ^mulligan/joomla\.html http://www.joomla.org/? [R=301,L]
poi l'ho messo nella root del sito nella sotto cartella mulligan e mi da errore invece di reindirizzarmi sul sito joomla.org.
se invece faccio lo stesso sul mio sito di golfameno.it, dove tutto funziona vengo reindirizzato su joomla.org... che dite?

Offline Ghiepo

  • Appassionato
  • ***
  • Post: 207
    • Mostra profilo
Re:[RISOLTO] Errori 404 e vari dopo spostamento sito.
« Risposta #7 il: 25 Mag 2015, 23:32:17 »
Dopo tanti tentativi infruttuosi sono giunto alla conclusione che il server su cui era installato Joomla (che precedentemente aveva una vecchia versione del sito fatto con Codeigniter) aveva qualcosa che non andava, così ho chiesto al provider di resettarlo e di riportarlo allo stato originale. A questo punto ho reinstallato tutto e il problema è risolto... funziona tutto regolarmente.

 



Web Design Bolzano Kreatif