+ Antworten
Ergebnis 1 bis 2 von 2

Thema: Javascript Problem mit SEF / SEO

  1. #1
    Neu an Board
    Registriert seit
    22.04.2010
    Beiträge
    2
    Bedankte sich
    0
    Erhielt 0 Danksagungen
    in 0 Beiträgen

    Standard Javascript Problem mit SEF / SEO

    Hallo Leute,

    ich habe ein kleines Problem mit einer Joomla Installation. (Joomla 1.0 er Version)
    Auf der Seite ist ein Template mit Javascript installiert - und wenn ich SEF in General Settings einschalte und die .htaccess anpasse scheint alles zu gehen, bis man auf einen der Javascript Links samt Scrolldown Menu klickt.

    Hier ist die Adresse:
    http://www.big-dealer.com/coaching-mit-pferden/

    Klickt man zum Beispiel auf den obersten Link "Die Idee" öffnet sich en Menü, das sich aber gleich wieder schliesst wenn man auf einen der Links im Menü klickt.

    Die Joomla Installation liegt im Unterordner: /coaching-mit-pferden

    Hier ist gleichmal die .htaccess Datei damit ihr schauen könnt, ob da eventuell etwas faul ist:

    HTML-Code:
    ##
    # @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 /coaching-mit-pferden
    
    
    ########## 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} ^(/coaching-mit-pferden/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 ********** 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
    1000 Dank schonmal im Vorraus, ich habe jetzt 14 Stunden an dem Problem gesessen und hoffe, dass imr jemand helfen kann.

    alles gute, Atilla der 115.

  2. #2
    Neu an Board
    Registriert seit
    22.04.2010
    Beiträge
    2
    Bedankte sich
    0
    Erhielt 0 Danksagungen
    in 0 Beiträgen

    Standard Template Code

    Ach so und dann ist hier auch nochmal der Code aus der Template index.php

    PHP-Code:
    <?php defined"_VALID_MOS" ) or die( "Direct Access to this location is not allowed." );?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
        <head>
        <meta **********="Content-Type" content="text/html;>charset=iso-8859-9" />
        <meta **********="Content-Type" content="text/html; charset=windows-1254" />
        <?php if ( $my->id ) { initEditor(); } ?>
        <meta **********="Content-Type" content="text/html;><?php echo _ISO?>" />
        <?php mosShowHead(); ?>
        <?php echo "<link rel=\"stylesheet\" href=\"$GLOBALS[mosConfig_live_site]/templates/$GLOBALS[cur_template]/css/template_css.css\" type=\"text/css\"/>" ?><?php echo "<link rel=\"shortcut icon\" href=\"$GLOBALS[mosConfig_live_site]/images/favicon.ico\" />" ?>
        <script type="text/javascript" src="templates/dirty_blue/js/prototype.lite.js"></script>
        <script type="text/javascript" src="templates/dirty_blue/js/moo.fx.js"></script>
        <script type="text/javascript" src="templates/dirty_blue/js/moo.fx.pack.js"></script>
    </head>
    <body>
        <table width="770" border="0" cellspacing="0" cellpadding="0" align="center" style="background-repeat: repeat-y;" background="<?php echo $mosConfig_live_site;?>/templates/dirty_blue/images/site_back.png">
          <tr>
            <td height="40" ><img src="<?php echo $mosConfig_live_site;?>/templates/dirty_blue/images/top.png" /></td>
          </tr>
          <tr>
            <td><div align="right">
              <?php mosLoadModules 'user3' ); ?>
            </div></td>
          </tr>
          
          <tr>
            <td height="190" style="background-repeat:no-repeat; " background="<?php echo $mosConfig_live_site;?>/templates/dirty_blue/images/header.png" ><table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr>
            <td width="36">        </td>
            <td></td>
              </tr>
              <tr>
            <td width="36"></td>
            <td></td>
              </tr>
            </table></td>
          </tr>
          <tr>
            <td>&nbsp;</td>
          </tr>
          <tr>
            <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr>
            <td width="236" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
              
              <tr>
                <td><div id="container">
        
        <div id="left">
          <div id="newsflash">
            <a href="javascript:void(null)" class="stretchtoggle"><img src="templates/dirty_blue/images/DieIdee.png" alt="" border="0" /></a>
            <div class="newsflashContainer"><div class="stretcher"><?php mosLoadModules 'user1' ); ?></div></div></div>
            
          <div id="latestnews">
            <a href="javascript:void(null)" class="stretchtoggle"><img src="templates/dirty_blue/images/Career.png" alt="" border="0" /></a>
            <div class="newsflashContainer"><div class="stretcher"><?php mosLoadModules 'user2' ); ?></div></div></div>
            
          <div id="links">
        <a href=index.php?option=com_content&task=view&id=23&Itemid=23><img src="templates/dirty_blue/images/Change.png" alt="" border="0" /></a><br />
        <?php mosLoadModules 'user4' ); ?><br />
        </div>
        
         <div id="links">
        <a href=index.php?option=com_content&task=view&id=23&Itemid=23><img src="templates/dirty_blue/images/Change.png" alt="" border="0" /></a><br />
        <?php mosLoadModules 'user4' ); ?><br />
        </div>
        
        <div id="links">
        <a href=index.php?option=com_content&task=view&id=25&Itemid=25><img src="templates/dirty_blue/images/Incentives.png" alt="" border="0" /></a><br />
        <?php mosLoadModules 'user5' ); ?></div>
            
          <div id="links">
        <br />
        <a href=index.php?option=com_content&task=view&id=26&Itemid=26><img src="templates/dirty_blue/images/Social.png" alt="" border="0" /></a><br />
        <?php mosLoadModules 'user6' ); ?></div>
            
         <div id="links">
        <br />
        
        <a href=index.php?option=com_content&task=view&id=27&Itemid=27>
        <img src="templates/dirty_blue/images/Education.png" alt="" border="0" />
        </a><br />
                                                                
        <?php mosLoadModules 'user7' ); ?><br />
        </div>
            
              <div id="latestnews">
            <a href="javascript:void(null)" class="stretchtoggle"><img src="templates/dirty_blue/images/Network.png" alt="" border="0" /></a>
            <div class="newsflashContainer"><div class="stretcher"><?php mosLoadModules 'user8' ); ?></div></div></div>
        </div>
        
        
        </div></td>
              </tr>
              <tr>
                <td>&nbsp;</td>
              </tr>
            </table></td>
            <td width="513" valign="top" style="padding-left:10px"><?php mosMainBody(); ?></td>
            <td width="21">&nbsp;</td>
              </tr>
            </table></td>
          </tr>
          <tr>
            <td>&nbsp;</td>
          </tr>
          <tr>
            <td><img src="<?php echo $mosConfig_live_site;?>/templates/dirty_blue/images/footer.png" /></td>
          </tr>
          <tr>
            <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr>
            <td width="31%"> <div align="center"></div></td>
            <td width="69%"><?php include_once('includes/footer.php'); ?></td>
              </tr>
            </table></td>
          </tr>
          <tr>
            <td><img src="<?php echo $mosConfig_live_site;?>/templates/dirty_blue/images/bottom.png" /></td>
          </tr>
        </table>
    </body>
    <script type="text/javascript">
        var myDivs = document.getElementsByClassName('stretcher');
        var myLinks = document.getElementsByClassName('stretchtoggle');
        var myAccordion = new fx.Accordion(myLinks, myDivs, {opacity: true});
    </script>
    </html>

    Notfalls wäre ich auch dankbar, wenn ihr mir sagen könntet, wie ich es einstellen kann, dass die Menüs einfach immer geöffnet sind.

    Vielen Dank fürs Lesen, und eure Geduld

+ Antworten

Lesezeichen

Berechtigungen

  • Neue Themen erstellen: Nein
  • Themen beantworten: Nein
  • Anhänge hochladen: Nein
  • Beiträge bearbeiten: Nein