Back to top

Autore Topic: www.miosito.it/joomla/index.php  (Letto 4024 volte)

Offline alcalde

  • Nuovo arrivato
  • *
  • Post: 18
    • Mostra profilo
www.miosito.it/joomla/index.php
« il: 07 Ott 2010, 16:50:57 »
Sto cercando di far scomparire da www.miosito.it/etc... (joomla e index.php) tutto ciò che c'è dopo lo slash, però non riesco ad aprire con il semplice www.miosito.it nonostante abbia seguito tutte le istruzioni presenti in topic simili a questo, e nonostante abbia modificato .htaccess nel seguente modo:

RewriteEngine On

RewriteCond %{HTTP_HOST} !^ilparere.net [NC]
RewriteRule (.*)$ http://www.ilparere.net/joomla/$1 [L]

RewriteRule ^index.php/(.*)$ http://www.ilparere.net/joomla/$1 [R=301,L]
RewriteRule ^joomladir/(.*)$ http://www.ilparere.net/$1 [R=301,L]

PER FAVORE RISPONDETE IN PAROLE SEMPLICI E SCUSATE LA MIA IGNORANZA ;D

Grazie in anticipo per l'aiuto

Offline tomtomeight

  • Global Moderator
  • Fuori controllo
  • ********
  • Post: 32046
  • Sesso: Maschio
  • Gli automatismi aiutano ma non insegnano nulla.
    • Mostra profilo
Re:www.miosito.it/joomla/index.php
« Risposta #1 il: 07 Ott 2010, 18:05:00 »
Ciao
Quel .htaccess non serve a farti sparire la scritta joomla dall'url ma semplicemente a indirizzarti alla cartella joomla anche se non la scrivi nell'url, sempre che questo file tu lo abbia messo nel percorso (root) prima della cartella joomla.
Per togliere completamente la voce joomla dall'url hai solo 2 possibilità:
1) modifichi la document root
2) sposti tutto il contenuto dalla cartella joomla alla cartella (root) immediatamente precedente, ed editando poi il configuration.php aggiustando i riferimenti al percorso delle variabili senza la voce joomla

Nel primo caso puoi farlo anche da .htaccess se non hai la possibilità di accedere al file httpd.conf (edit: ho corretto nome file scritto con estensione sbagliata)
aggiungi questa voce nel .htaccess
DocumentRoot /var/www/tuosito.it/httpdocs/joomla
naturalmente questo è solo un esempio del percorso assoluto della cartella document e come detto prima questo file deve stare nella root e non nella cartella joomla che avrà il suo .htaccess se serve.
« Ultima modifica: 07 Ott 2010, 18:22:34 da tomtomfive »

Offline alcalde

  • Nuovo arrivato
  • *
  • Post: 18
    • Mostra profilo
Re:www.miosito.it/joomla/index.php
« Risposta #2 il: 07 Ott 2010, 18:16:16 »
Premesso che sei veramente un grande e mi stai salvando le chiappe, penso di poter fare solo il processo 1 perchè il 2 mi dava problemi con un paio di componenti, detto questo in che punto la metto la stringa che mi hai suggerito? Una seconda e ultima domanda: la document root fa parte del pacchetto joomla o dell'hosting?

Offline tomtomeight

  • Global Moderator
  • Fuori controllo
  • ********
  • Post: 32046
  • Sesso: Maschio
  • Gli automatismi aiutano ma non insegnano nulla.
    • Mostra profilo
Re:www.miosito.it/joomla/index.php
« Risposta #3 il: 07 Ott 2010, 18:19:40 »
la metti nel file .htaccess
la document root è una impostazione del server apache e puoi chiedere all'hosting di modificarla se hai problemi ad implementarla col .htaccess,

Offline alcalde

  • Nuovo arrivato
  • *
  • Post: 18
    • Mostra profilo
Re:www.miosito.it/joomla/index.php
« Risposta #4 il: 07 Ott 2010, 18:28:15 »
La situazione è questa ho provato a mettere la stringa che mi hai inviato sul file .htaccess (che regolarmente modifico da htaccess.tex a .htaccess) ma non mi da risultati, se provo a srivere la url www.miosito.net non mi visualizza niente, se ci scrivo www.miosito.net/index.php invece mi si apre sotto forma di url www.miosito.net/joomla/index.php.
Sono disperato, se seguo la seconda strategia, che mi hai detto 2 post fa, i componenti mi saltano per aria; se seguo questa del .htaccess invece non fa entrare nel mio sito col semplice www.miosito.net.
Siccome è una cosa di lavoro, sono veramente nei guai, che posso fare? Sei l'unico che risponde al topic e dunque la mia ultiuma speranza!!!
Ti ringrazio comunque vada perchè stai provando ad aiutarmi!
Ti scongiuro comprendi la mia ignoranza e suggeriscimi con parole semplici... :'(

Offline alcalde

  • Nuovo arrivato
  • *
  • Post: 18
    • Mostra profilo
Re:www.miosito.it/joomla/index.php
« Risposta #5 il: 07 Ott 2010, 18:38:28 »
TI COPIO QUI IL MIO FILE .HTACCESS

GRAZIE PER L'ATTENZIONE E SCUSAMI PER IL DISTURBO

##
# @version $Id: htaccess.txt 14401 2010-01-26 14:10:00Z louis $
# @package Joomla
# @copyright Copyright (C) 2005 - 2010 Open Source Matters. All rights reserved.
# @license http://www.gnu.org/copyleft/gpl.html GNU/GPL
# Joomla! is Free Software
##


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



DocumentRoot/var/www/ilparere.net/ilparere.net/joomla

RewriteEngine On

RewriteCond %{HTTP_HOST} !^ilparere.net [NC]
RewriteRule (.*)$ http://www.ilparere.net/joomla/$1 [L]

RewriteRule ^index.php/(.*)$ http://www.ilparere.net/joomla/$1 [R=301,L]
RewriteRule ^joomladir/(.*)$ http://www.ilparere.net/$1 [R=301,L]





########## 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!
#
## Deny access to extension xml files (uncomment out to activate)
#<Files ~ "\.xml$">
#Order allow,deny
#Deny from all
#Satisfy all
#</Files>
## End of deny access to extension xml files
RewriteCond %{QUERY_STRING} mosConfig_[a-zA-Z_]{1,21}(=|\%3D) [OR]
# Block out any script trying to base64_encode crap to send via URL
RewriteCond %{QUERY_STRING} base64_encode.*\(.*\) [OR]
# Block out any script that includes a <script> tag in URL
RewriteCond %{QUERY_STRING} (\<|%3C).*script.*(\>|%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})
# Send all blocked request to homepage with 403 Forbidden error!
RewriteRule ^(.*)$ index.php [F,L]
#
########## End - Rewrite rules to block out some common exploits

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

# RewriteBase /


########## Begin - Joomla! core SEF Section
#
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !^/index.php
RewriteCond %{REQUEST_URI} (/|\.php|\.html|\.htm|\.feed|\.pdf|\.raw|/[^.]*)$  [NC]
RewriteRule (.*) index.php
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},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:www.miosito.it/joomla/index.php
« Risposta #6 il: 07 Ott 2010, 18:50:36 »
Ma dove lo metti quel tuo .htaccess?
Come ti ho detto prima devi metterlo nella root e non nella cartella joomla

fai un nuovo file .htaccess e mettici solamente questo codice

Citazione
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} !^ilparere.net [NC]
RewriteRule ^(.*)$ http://www.ilparere.net/joomla/$1 [L,R=301]

</IfModule>

L'altro ripuliscilo da tutte le aggiunte e lascialo nella cartella joomla

Con questo non risolvi il problema ma almeno accedi con il solo url http://www.ilparere.net

Poi dammi tempo per verificare quello che ti ho scritto prima infatti potrebbe non funzionare sul tuo server.

Offline alcalde

  • Nuovo arrivato
  • *
  • Post: 18
    • Mostra profilo
Re:www.miosito.it/joomla/index.php
« Risposta #7 il: 07 Ott 2010, 19:07:30 »
ho seguito le tue indicazioni (nella root c'è il file .htaccess che mi hai fornito, mentre dentro la cartella di joomla c'è il .htaccess puro senza modifiche). IL fatto è che quando scrivo www.ilparere.net mi appare automaticamente www.ilparere.net/joomla e non si apre niente, ho provato anche ad aggiungere index.php e niente da fare. Non so veramente a che santi rivolgermi..

Offline alcalde

  • Nuovo arrivato
  • *
  • Post: 18
    • Mostra profilo
Re:www.miosito.it/joomla/index.php
« Risposta #8 il: 07 Ott 2010, 19:16:38 »
scusami se ti riempio di informazioni ma ho trovato queste stringhe nel file php.ini del provider, pensi possano servire a qualcosa?

; The root of the PHP pages, used only if nonempty.
; if PHP was not compiled with FORCE_REDIRECT, you SHOULD set doc_root
; if you are running php as a CGI under any web server (other than IIS)
; see documentation for security issues.  The alternate is to use the
; cgi.force_redirect configuration below
doc_root =

; The directory under which PHP opens the script using /~username used only
; if nonempty.
user_dir =

; Directory in which the loadable extensions (modules) reside.
extension_dir = "/"

; Whether or not to enable the dl() function.  The dl() function does NOT work
; properly in multithreaded servers, such as IIS or Zeus, and is automatically
; disabled on them.
enable_dl = Off

; cgi.force_redirect is necessary to provide security running PHP as a CGI under
; most web servers.  Left undefined, PHP turns this on by default.  You can
; turn it off here AT YOUR OWN RISK
; **You CAN safely turn this off for IIS, in fact, you MUST.**


; if cgi.nph is enabled it will force cgi to always sent Status: 200 with
; every request.
; cgi.nph = 1

grazie ancora

 



Web Design Bolzano Kreatif