• Bannato User Attivo

    htaccess con sh404SEF

    Salve a tutti,
    apro quest'ultimo topic( so che ho aperto troppi topic e vi ho rotto a sufficienza) in quanto è una cosa fondamentale per il SEO e joomla: url rewrite.
    Praticamente ho installato il componente sh404SEF e dopo ho modificato htaccess rinominandolo in . htaccess.. però inspiegabilmente dopo aver seguito correttamente(lo spero) la procedura della documentazione ufficiale del componente..quando vado alle url generate mi dice "
    500 Internal Server Error"

    Ringrazio chiunque vuole aiutarmi..sono distrutto l'url rewrite è importante :gtsad:


  • Bannato User Attivo

    Vi mostro il mio file htaccess:

    ##
    # @version $Id: htaccess.txt 9975 2008-01-30 17:02:11Z ircmaxell $
    # @package Joomla
    # @copyright Copyright (C) 2005 - 2008 Open Source Matters. All rights reserved.
    
    # 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
    
    #
    #  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! Directory (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 %{REQUEST_FILENAME} !-d %{REQUEST_URI} ^(/component/option,com) [NC,OR] ##optional - see notes## %{REQUEST_URI} (/|\.htm|\.php|\.html|/[^.]*)$ 
    #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|/[^.]*)$ 
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule (.*) index.php
    #
    ########## End - 3rd Party SEF Section
    

    Dal file si può notare che la cartella di joomla è una sottodirectory e che ho commentato la stringa "# Options +FollowSymLinks" in quanto molti hosting non la accettano.. Nonostante ciò continuo ad avere errori 500... secondo voi quale può essere il problema???

    Grazie x la disponibilità..


  • User Attivo

    Da quanto capisco il sito è in locale e usi xampp.

    In teoria non sei in sottocartella, togli htdocs dal RewriteBase.


  • Bannato User Attivo

    No sto in remoto sui server di prophp. u s, e quando entro sul ftp c'è la cartella htdocs e clicco sopra e mi escono i file di joomla, però se io uppo un file nella cartella htdocs la vedo così: sito/file e non sito./htdocs/file , quindi devo levare l'htdocs?


  • User Attivo

    Non sei in sottocartella, togli htdocs.


  • Bannato User Attivo

    Grazie ho risolto..gentilissimo 😆