Autore Topic: modificare file .hatacess per il SEO  (Letto 13033 volte)

Offline GMarche

  • Appassionato
  • ***
  • Post: 493
  • Sesso: Maschio
    • Mostra profilo
modificare file .hatacess per il SEO
« il: 14 Apr 2007, 21:25:56 »
Nella sezione seo della configurazione globale vi e' "Search Engine Friendly URL" che da la' possibilita' di inserire si o no .

L'istruzione dice che se si setta su si, bisogna rinominare il file htaccess.txt in .htaccess e che se il file .htaccess non si trova nella root modificarlo in base alle spiegazioni scritte... ora non ho capito che devo fare!

Joomla non istallata nella root ma dentro la cartella portale nella root... in che modo devo modificarlo?

Nel file ho scritto questo...

Codice: [Seleziona]

##
# @version $Id: htaccess.txt 5973 2006-12-11 01:26:33Z robs $
# @package Joomla
# @copyright Copyright (C) 2005 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.
#
# Only use one of the two SEF sections that follow.  Lines that can be uncommented
# (and thus used) have only one #.  Lines with two #'s should not be uncommented
# In the section that you don't use, all lines should start with #
#
# For Standard SEF, use the standard SEF section.  You can comment out
# all of the RewriteCond lines and reduce your server's load if you
# don't have directories in your root named 'component' or 'content'
#
# If you are using a 3rd Party SEF or the Core SEF solution
# uncomment all of the lines in the '3rd Party or Core SEF' section
#
#####################################################

#####  SOLVING PROBLEMS WITH COMPONENT URL's that don't work #####
# SPECIAL NOTE FOR SMF USERS WHEN SMF IS INTEGRATED AND BRIDGED
# OR ANY SITUATION WHERE A COMPONENT's URL's AREN't WORKING
#
# In both the 'Standard SEF', and '3rd Party or Core SEF' sections the line:
# RewriteCond %{REQUEST_URI} ^(/component/option,com) [NC,OR] ##optional - see notes##
# May need to be uncommented.  If you are running your Joomla!/Mambo from
# a subdirectory the name of the subdirectory will need to be inserted into this
# line.  For example, if your Joomla!/Mambo is in a subdirectory called '/test/',
# change this:
# RewriteCond %{REQUEST_URI} ^(/component/option,com) [NC,OR] ##optional - see notes##
# to this:
# RewriteCond %{REQUEST_URI} ^(/test/component/option,com) [NC,OR] ##optional - see notes##
#
#####################################################


##  Can be commented out if causes errors, see notes above.
Options +FollowSymLinks

#
#  mod_rewrite in use

RewriteEngine On


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

# RewriteBase /


########## Begin - Joomla! core SEF Section
############# Use this section if using ONLY Joomla! core SEF
## ALL (RewriteCond) lines in this section are only required if you actually
## have directories named 'content' or 'component' on your server
## If you do not have directories with these names, comment them out.
#
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
#RewriteCond %{REQUEST_URI} ^(/component/option,com) [NC,OR] ##optional - see notes##
RewriteCond %{REQUEST_URI} (/|\.htm|\.php|\.html|/[^.]*)$  [NC]
RewriteRule ^(content/|component/) index.php
#
########## End - Joomla! core SEF Section



########## Begin - 3rd Party SEF Section
############# Use this section if you are using a 3rd party (Non Joomla! core) SEF extension - e.g. OpenSEF, 404_SEF, 404SEFx, SEF Advance, etc
#
#RewriteCond %{REQUEST_URI} ^(/component/option,com) [NC,OR] ##optional - see notes##
#RewriteCond %{REQUEST_URI} (/|\.htm|\.php|\.html|/[^.]*)$  [NC]
#RewriteCond %{REQUEST_FILENAME} !-f
#RewriteCond %{REQUEST_FILENAME} !-d
#RewriteRule (.*) index.php
#
########## End - 3rd Party SEF Section



########## 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 set a mosConfig value through the URL
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


Offline sali40

  • Global Moderator
  • Instancabile
  • ********
  • Post: 4791
  • Sesso: Maschio
    • Mostra profilo
Re: modificare file .hatacess per il SEO
« Risposta #1 il: 14 Apr 2007, 21:31:08 »
decommenta "rewritebase" e trasformala in /portale/


EDIT: Nel caso di problemi, decommenta  Rewrite con request url ... (quella indicata come opzionale)
« Ultima modifica: 14 Apr 2007, 21:35:05 da sali40 »

Offline GMarche

  • Appassionato
  • ***
  • Post: 493
  • Sesso: Maschio
    • Mostra profilo
Re: modificare file .hatacess per il SEO
« Risposta #2 il: 14 Apr 2007, 21:36:38 »
Quindi in pratica faccio diventare questa riga


# RewriteBase /


cos?

portale /

Grazie 1000

Offline sali40

  • Global Moderator
  • Instancabile
  • ********
  • Post: 4791
  • Sesso: Maschio
    • Mostra profilo
Re: modificare file .hatacess per il SEO
« Risposta #3 il: 14 Apr 2007, 21:38:04 »
no. togli il cancelletto e dopo lo slash aggiungi portale/ (con lo slash finale

Offline GMarche

  • Appassionato
  • ***
  • Post: 493
  • Sesso: Maschio
    • Mostra profilo
Re: modificare file .hatacess per il SEO
« Risposta #4 il: 14 Apr 2007, 21:54:34 »
Niente... mi da:



The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, support@one.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

Offline sali40

  • Global Moderator
  • Instancabile
  • ********
  • Post: 4791
  • Sesso: Maschio
    • Mostra profilo
Re: modificare file .hatacess per il SEO
« Risposta #5 il: 14 Apr 2007, 22:11:20 »
la riga deve diventare
RewriteBase /portale/

Offline GMarche

  • Appassionato
  • ***
  • Post: 493
  • Sesso: Maschio
    • Mostra profilo
Re: modificare file .hatacess per il SEO
« Risposta #6 il: 14 Apr 2007, 22:13:40 »
Si, c' diventanta ma non va.. :(

Offline sali40

  • Global Moderator
  • Instancabile
  • ********
  • Post: 4791
  • Sesso: Maschio
    • Mostra profilo
Re: modificare file .hatacess per il SEO
« Risposta #7 il: 14 Apr 2007, 22:24:02 »
prova decommentando anche mod_rewrite in_use
e la riga commentata del gruppo del seo (la terza)

Offline GMarche

  • Appassionato
  • ***
  • Post: 493
  • Sesso: Maschio
    • Mostra profilo
Re: modificare file .hatacess per il SEO
« Risposta #8 il: 15 Apr 2007, 22:29:24 »
Ok funzia ;)

Offline sali40

  • Global Moderator
  • Instancabile
  • ********
  • Post: 4791
  • Sesso: Maschio
    • Mostra profilo
Re: modificare file .hatacess per il SEO
« Risposta #9 il: 15 Apr 2007, 23:06:36 »
eccellente :)

Offline filpi5481

  • Global Moderator
  • Instancabile
  • ********
  • Post: 4106
  • Sesso: Maschio
  • NO MP TECNICI
    • Mostra profilo
Re: modificare file .hatacess per il SEO
« Risposta #10 il: 11 Giu 2007, 17:28:08 »
scusate se ritorno su questo argomento..
potresti (gmarche) postare il tuo .hatccess perch anche io ho lo stesso problema e nn riesco a risolvere..

grazie filpi5481
Volete sapere tutto sul nuovo iPad di Apple? iPad Forum Italia
Global moderator Joomla.it

Offline driade

  • Esploratore
  • **
  • Post: 73
  • Sesso: Femmina
    • Mostra profilo
Re: modificare file .hatacess per il SEO
« Risposta #11 il: 11 Giu 2007, 17:46:57 »
prova decommentando anche mod_rewrite in_use
e la riga commentata del gruppo del seo (la terza)

succede qualcosa se non c' _ fra in e use?

la riga da decommentare questa?
#RewriteCond %{REQUEST_URI} ^(/component/option,com) [NC,OR]

Grazie

Offline rino69

  • Appassionato
  • ***
  • Post: 428
  • Sesso: Maschio
    • Mostra profilo
Re: modificare file .hatacess per il SEO
« Risposta #12 il: 11 Giu 2007, 17:59:32 »
reinstalla il file htaccess.txt una volta installato fai la modifica sotto riportata e rinomini il file in .htaccess dovrebbe funzionare
Citazione
#Options FollowSymLinks

#
#  mod_rewrite in use

RewriteEngine On


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

# RewriteBase /


########## Begin - Joomla! core SEF Section
############# Use this section if using ONLY Joomla! core SEF
## ALL (RewriteCond) lines in this section are only required if you actually
## have directories named 'content' or 'component' on your server
## If you do not have directories with these names, comment them out.
#
#RewriteCond %{REQUEST_FILENAME} !-f
#RewriteCond %{REQUEST_FILENAME} !-d
#RewriteCond %{REQUEST_URI} ^(/component/option,com) [NC,OR]       ##optional - see notes##
#RewriteCond %{REQUEST_URI} (/|\.htm|\.php|\.html|/[^.]*)$  [NC]
#RewriteRule ^(content/|component/) index.php
# il simbolo segnato in rosso va inserito
########## End - Joomla! core SEF Section



########## Begin - 3rd Party SEF Section
############# Use this section if you are using a 3rd party (Non Joomla! core) SEF extension - e.g. OpenSEF, 404_SEF, 404SEFx, SEF Advance, etc
#
#RewriteCond %{REQUEST_URI} ^(/component/option,com) [NC,OR]       ##optional - see notes##
#RewriteCond %{REQUEST_URI} (/|\.htm|\.php|\.html|/[^.]*)$  [NC]
#RewriteCond %{REQUEST_FILENAME} !-f
#RewriteCond %{REQUEST_FILENAME} !-d
#RewriteRule (.*) index.php
# il simbolo in verde va eliminato
########## End - 3rd Party SEF Section
« Ultima modifica: 12 Giu 2007, 00:14:52 da rino69 »
la vita e una tempesta  prenderla in c***o e un lampo
www.nonnaamelia.com prodotti tipici siciliani

Offline driade

  • Esploratore
  • **
  • Post: 73
  • Sesso: Femmina
    • Mostra profilo
Re: modificare file .hatacess per il SEO
« Risposta #13 il: 11 Giu 2007, 20:54:39 »
Niente da fare... :'(

Offline rino69

  • Appassionato
  • ***
  • Post: 428
  • Sesso: Maschio
    • Mostra profilo
Re: modificare file .hatacess per il SEO
« Risposta #14 il: 11 Giu 2007, 21:01:42 »
Niente da fare... :'(
posta il file htaccess
la vita e una tempesta  prenderla in c***o e un lampo
www.nonnaamelia.com prodotti tipici siciliani

Offline GMarche

  • Appassionato
  • ***
  • Post: 493
  • Sesso: Maschio
    • Mostra profilo
Re: modificare file .hatacess per il SEO
« Risposta #15 il: 12 Giu 2007, 09:48:24 »
Il mio file .hataccess non credo ti possa essere utile in quanto parecchio modificato per funzionare con CB.

Comunque si, su arub.a devi commentare la riga che ti stata data se no non funziona.

Ciao ciao

Offline driade

  • Esploratore
  • **
  • Post: 73
  • Sesso: Femmina
    • Mostra profilo
Re: modificare file .hatacess per il SEO
« Risposta #16 il: 12 Giu 2007, 15:48:31 »
posta il file htaccess

Codice: [Seleziona]
##
# @version $Id: htaccess.txt 4085 2006-06-21 16:03:54Z stingrey $
# @package Joomla
# @copyright Copyright (C) 2005 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.
#
# Only use one of the two SEF sections that follow.  Lines that can be uncommented
# (and thus used) have only one #.  Lines with two #'s should not be uncommented
# In the section that you don't use, all lines should start with #
#
# For Standard SEF, use the standard SEF section.  You can comment out
# all of the RewriteCond lines and reduce your server's load if you
# don't have directories in your root named 'component' or 'content'
#
# If you are using a 3rd Party SEF or the Core SEF solution
# uncomment all of the lines in the '3rd Party or Core SEF' section
#
#####################################################

#####  SOLVING PROBLEMS WITH COMPONENT URL's that don't work #####
# SPECIAL NOTE FOR SMF USERS WHEN SMF IS INTEGRATED AND BRIDGED
# OR ANY SITUATION WHERE A COMPONENT's URL's AREN't WORKING
#
# In both the 'Standard SEF', and '3rd Party or Core SEF' sections the line:
# RewriteCond %{REQUEST_URI} ^(/component/option,com) [NC,OR] ##optional - see notes##
# May need to be uncommented.  If you are running your Joomla/Mambo from
# a subdirectory the name of the subdirectory will need to be inserted into this
# line.  For example, if your Joomla/Mambo is in a subdirectory called '/test/',
# change this:
# RewriteCond %{REQUEST_URI} ^(/component/option,com) [NC,OR] ##optional - see notes##
# to this:
# RewriteCond %{REQUEST_URI} ^(/test/component/option,com) [NC,OR] ##optional - see notes##
#
#####################################################


##  Can be commented out if causes errors, see notes above.
Options FollowSymLinks

#
mod_rewrite in use

RewriteEngine On


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

RewriteBase /htdocs/


########## Begin - Joomla! core SEF Section
############# Use this section if using ONLY Joomla! core SEF
## ALL (RewriteCond) lines in this section are only required if you actually
## have directories named 'content' or 'component' on your server
## If you do not have directories with these names, comment them out.
#
#RewriteCond %{REQUEST_FILENAME} !-f
#RewriteCond %{REQUEST_FILENAME} !-d
#RewriteCond %{REQUEST_URI} ^(/component/option,com) [NC,OR] ##optional - see notes##
#RewriteCond %{REQUEST_URI} (/|\.htm|\.php|\.html|/[^.]*)$  [NC]
#RewriteRule ^(content/|component/) index.php
#
########## End - Joomla! core SEF Section



########## Begin - 3rd Party SEF Section
############# Use this section if you are using a 3rd party (Non Joomla! core) SEF extension - e.g. OpenSEF, 404_SEF, 404SEFx, SEF Advance, etc
#
#RewriteCond %{REQUEST_URI} ^(/component/option,com) [NC,OR] ##optional - see notes##
RewriteCond %{REQUEST_URI} (/|\.htm|\.php|\.html|/[^.]*)$  [NC]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule (.*) index.php
#
########## End - 3rd Party SEF Section

Comunque io non sono su aruba ma su ******. La mia root ha du cartelle: cgi-bin e htdocs(il sito qui). IL tutto oviamente immodificabile.

Offline sali40

  • Global Moderator
  • Instancabile
  • ********
  • Post: 4791
  • Sesso: Maschio
    • Mostra profilo
Re: modificare file .hatacess per il SEO
« Risposta #17 il: 13 Giu 2007, 21:56:56 »
RewriteBase dovrebbe avere solo lo slash:
RewriteBase /

Offline driade

  • Esploratore
  • **
  • Post: 73
  • Sesso: Femmina
    • Mostra profilo
Re: modificare file .hatacess per il SEO
« Risposta #18 il: 14 Giu 2007, 10:44:37 »
Ho provato, non funziona. E d'altra parte dopo lo slash non bisogna metterci la cartella in cui il sito?
Comuqnue nel complesso dispero di riuscir e a farlo funzionare.....Ho provato anche Open Sef, ma non funziona. Uso lo stesso file htaccess?

Offline GMarche

  • Appassionato
  • ***
  • Post: 493
  • Sesso: Maschio
    • Mostra profilo
Re: modificare file .hatacess per il SEO
« Risposta #19 il: 14 Giu 2007, 15:59:16 »
Ma non ho capito una cosa... a te il file .hataccess ti serve per far funzionare il seo di joomla o per CB?

Ciao

 

Host

Torna su