Joomla.it Forum
Joomla! 2.5 (versione con supporto terminato) => Joomla! 1.6/1.7/2.5 => : follia 18 Nov 2012, 11:38:48
-
ho letto da tante parti come si deve modificare questo file utile per levare index.php dagli url
però a me non funziona..questo è tutto il codice contenuto..di righe rule ce ne sono 2 come si deve fare?mi potreste fare vedere?il codice corretto?
inoltre non so se è possibile..si può anche fare che al posto di index.php possa comparire un'altra parola?
grazie in anticipo
##
# @package Joomla
# @copyright Copyright (C) 2005 - 2012 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).
##
# RewriteBase /
## 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.
-
Non si capisce una mazza, cosi aiuto non ne riceverai facilmente, ti consiglio ivamente di scrivere il succo della questione fare copia e incolla non serve.
-
Aggiungo che se modifichi il file htacess.txt senza rinominarlo .htacess non serve assolutamente a nulla...
-
# Options +FollowSymLinks
RewriteBase /
N.B.
Il file deve essere rinominato in .htaccess ( da htaccess a .htaccess)
P.S.
In effetti le info a disposizione sono scarsine, aiutaci ad aiutarti... :)
cordialità
S.
-
ok..
problema 1:
quando cerco di rinominare il file htaccess in .htaccess mi da errore, ovvero windows mi dice: SPECIFICARE IL NOME DEL FILE e non me lo rinomina
problema 2:questo è il mio sito http://www.firewood-pizza-oven.com/
quando vo nelle varie pagine es. questa http://www.firewood-pizza-oven.com/index.php/forno-a-legna-70x70
nell'url di questa e delle altre pagine viene sempre index.php..girando su google ho visto che si può levare modificando il file htaccess, in modo che diventi: [size=78%]http://www.firewood-pizza-oven.com/[/size][size=78%]forno-a-legna-70x70[/size]
quindi vi ho incollato il codice del file htaccess per sapere come deve essere modificato..spero di essere stato più chiaro
-
Ciao follia,
il sito ce l'hai nella root del server?
In quel caso
# RewriteBase /
devi decommentarlo e deve diventare così:
RewriteBase /
Poi, in locale win non accetta files che cominciano con un punto.
Non è che provi a fare i cambiamenti nel file in locale? Devi farli in quello sul server.
Scusa se sono un po' pedante ma così chiariamo bene la situazione ;)
Ciao!
-
ok sono riuscito a cambiare inl nome in .htaccess
si è nella root
ho modificato ora il codice è così e ho risalvato in remoto
##
# @package Joomla
# @copyright Copyright (C) 2005 - 2012 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).
##
RewriteBase /
## 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.
-
## Can be commented out if causes errors, see notes above.
Options +FollowSymLinks
...Andrebbe commentato:
#Options +FollowSymLinks
e dal pannello "configurazione globale" setti i parametri "Configurazione SEO"
cordialità.
S.
-
ciao follia se inserisci ancora del codice sensa usare i tag non lo sistemo più lo cancello e la seconda volta che ti sistemo i post , con il primo non oh detto a sperando che capivi il secondo lo risistemato vediamo se continui.
-
Se ancora nn va aggiungi alla fine del file .htaccess questa riga di codice, testato al 100%:
RedirectMatch 301 ^/index.php/(.*)$ http://www.nomedelmiosito/$1
sostituisci nomedelmiosito con quello reale.
Fine.
cordialità.
S.
-
ho messo anche questa rigascusami non lo sapevo.. di questi vincoli..provo :(
##
# @package Joomla
# @copyright Copyright (C) 2005 - 2012 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).
##
RewriteBase /
## 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.
-
sarò stordito ma non funziona
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.
RedirectMatch 301 ^/index.php/(.*)$ http://www.firewood-pizza-oven.com/$1
-
allora, sono riuscito a farlo funzionare, avevo sbagliato..il problema è che ora non mi funziona più i link
http://www.firewood-pizza-oven.com
-
Se ancora nn va aggiungi alla fine del file .htaccess questa riga di codice, testato al 100%:
RedirectMatch 301 ^/index.php/(.*)$ http://www.nomedelmiosito/$1
sostituisci nomedelmiosito con quello reale.
Fine.
cordialità.
S.
non funziona, se lo inserisco nel mio file la pagina mi da errore 500
-
allora, sono riuscito a farlo funzionare, avevo sbagliato..il problema è che ora non mi funziona più i link
http://www.firewood-pizza-oven.com (http://www.firewood-pizza-oven.com)
come ai risolto ? condiviti per favore ;)
-
sarò stordito ma non funziona
Svuota la cache, il tuo sito funzionava senza l'aggiunta dell'ultima riga:
RedirectMatch 301 ^/index.php/(.*)$ http://www.miosito/$1
toglila altrimenti i link non funzionano.
-
avevo sbagliato rigo a mettere SI nella configurazione globale poi ho messo SI a Riscrivi URL SEF. funziona ma non mi trova più le pagine
Not Found
non so che abbia
provatoa anche a levare la riga RedirectMatch 301 ^/index.php/(.*)$ http://www.miosito/$1
[/size]
[/size]e cache vuota
-
1) Metti a "no" nella configurazione sef (pannello conf. globale) e ripristina il funzionanmento del sito.
2) verifica nel file .htacces le due seguenti dichiarazioni:
#Options +FollowSymLinks
RewriteBase /
Svuota la cache del browser e controlla il buon funzionamento.
...il tuo sito non è su IIS (Microzozz) vero?
-
non funziona, se lo inserisco nel mio file la pagina mi da errore 500
Il tuo indirizzo è con www o senza?
RedirectMatch 301 ^/index.php/(.*)$ http://miosito/$1
-
sono a questo punto però non mi funziona i link (se non risolvo sta cosa non dormo stanotte):
rinominato .htaccess
hosting sgaragnao.it sito http://www.firewood-pizza-oven.com (http://www.firewood-pizza-oven.com)
codice fatto modifica:
##
# @package Joomla
# @copyright Copyright (C) 2005 - 2012 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).
##
RewriteBase /
## 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.
impostazioni pannello di controllo
[size=1.182em]Impostazioni SEO[/size][/size][size=1.091em]Attiva URL SEF ON[/size][size=1.091em]Riscrivi URL SEF ON[/size][size=1.091em]il resto OFF[/size]
-
dimenticavo cache vuota
-
FUNZIONA!!!!!
avevo sbagliato a salvare il file htaccess
dovevo levare il .txt
-
grazie a tutti della collaborazione..se volete comprare un forno da noi vi fo lo sconto http://www.forni-a-legna.com