Sh404SEF i httacces - Strona 2
Strona 2 z 2 PierwszyPierwszy 12
Wyniki 11 do 19 z 19

Temat: Sh404SEF i httacces

  1. #11
    Przeglądacz
    Dołączył
    17-09-2008
    Wpisy
    99
    Punkty
    10

    Domyślny

    dałam to i nic nie ruszyło dalej ten index.php jest

    Mam pytanie jak zmieniacie coś w komponencie i na końcu wyskakuje wam informacja
    WARNING
    You are about to delete 7 records

    to wciskać Proceded

    Wcisnełam to własnie i owszem usuneło mi index.php ale za to pojawił się błąd
    [404] File Not Found : Plik nie istnieje

    Podany w zapytaniu URL /Grzybica-pochwy.html nie został odnaleziony na tym serwerze. The requested URL /Grzybica-pochwy.html was not found on this server.
    Ostanio edytowane przez vitasklep : 10-11-2008 22:56

  2. Pani Reklamowa
    Pani Reklamowa jest aktywna
    Avatar Panny Google

    Dołączył
    19-08-2010
    Skąd
    Internet
    Postów
    milion
    Pochwał
    setki
  3. #12
    Przeglądacz nemo awatar
    Dołączył
    13-10-2005
    Skąd
    /dev/random
    Wpisy
    90
    Punkty
    12

    Domyślny

    - sprawdz czy masz wlaczona opje SEO w panelu konfiguracji Joomli,

    - sprawdz via ftp, czy w glownym katalogu istnieje plik .htaccess (moze byc ukryty!) lub htaccess.txt (lub zblizona nazwa) - jesli nie masz i nie jest ukryty, to sciagnij paczke z plikowni i dograj go na swoj serwer, pamietajac przy tym, ze musi sie on nazywac .htaccess
    Pozdrawiam, nemo

  4. #13
    Przeglądacz
    Dołączył
    17-09-2008
    Wpisy
    99
    Punkty
    10

    Domyślny

    juz sobie poradziłam

    dopisałam w pliku .httacces
    DirectoryIndex index.php
    RewriteEngine On
    RewriteBase /


    i pomogło

  5. #14
    Przeglądacz
    Dołączył
    28-01-2009
    Wpisy
    31
    Punkty
    10

    Domyślny

    Witam,

    Mam problem -siedze juz kilka godzin nad tym i nie za bardzo wiem co moge jeszcze zrobic.

    Posiadam joomle 1.0.15PL i serwer na nazwa.pl. Zainstalowalem sh404sef zmienilem nazwe .htaccess wszystko jest ok jednak chcialem jeszcze skrocic adres zeby nie pokazywalo sie www.domena.pl/index.php/costam/costam.html
    Zmienilem wiec ustawienie w konfiguracji sh404sef na with .htaccess (mod_rerwrite) ale teraz jezeli chce gdzies wejsc wyskakuje mi blad 404 ze taka strona nie istnieje.
    Stronka nie jest w katalogu głownym tylko w katalogu TEST probowalem zmieniac tez sciezke ale nic to nie dawalo albo wywalalo mi blad

    Moj
    .htaccess
    ##
    # @version $Id: htaccess.txt 5975 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 ********** 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


    Prosze o pomoc co musze zmodyfikowac zeby w linku nie pojawial sie index.php.
    Dzieki za pomoc

  6. #15
    Przeglądacz
    Dołączył
    17-09-2008
    Wpisy
    99
    Punkty
    10

    Domyślny

    Wklej sobie do pliku hatcess to co ci przeslalam poniżej. Ten swoj kod wykasuj a wklej to. JAk to pomoze to powiem ci potem jak zmienic konfiruracje zeby byly jeszcze prostszy adres.




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

    DirectoryIndex index.php
    RewriteEngine On
    RewriteBase /

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

  7. #16
    Przeglądacz
    Dołączył
    28-01-2009
    Wpisy
    31
    Punkty
    10

    Domyślny

    Nawet nie wiem jak ci dziekowac oczywiscie pomoglo

  8. #17
    Przeglądacz
    Dołączył
    28-01-2009
    Wpisy
    31
    Punkty
    10

    Domyślny

    Witam,

    Zainstalowalem joomla_1.0.15_JIE i od razu chcialem poukladac sprawy zwiazane z linkami jednak w momencie kiedy w konfiguracji komponentu sh404SEF_1.3 ustawilem na with .httacces pojawil mi sie blad na stronie zaplecza i rowniez na stronie witryny:

    Parse error
    : syntax error, unexpected '/' in /home/.../administrator/components/com_sef/custom.sef.php on line 58

    Ponizej ten plik: custom.sef.php

    <?php
    // default.sef.php : custom.configuration file for sh404SEF
    // 1.3.9 - build_357 - Joomla - <a href="http://extensions.siliana.com/">extensions.Siliana.com/</a>
    // DO NOT REMOVE THIS LINE :
    if (!defined('_VALID_MOS')) die('Direct Access to this location is not allowed.');
    // DO NOT REMOVE THIS LINE
    // compatibility with past version. Set to 0 so that
    // section is not added in (table) category links. This was a bug in past versions
    // as sh404SEF would not insert section, even if ShowSection param was set to Yes
    $shDefaultParams['SH404SEF_COMPAT_SHOW_SECTION_IN_CAT_LINKS'] = 1;
    // set to 1 if using other than port 80 for http
    $shDefaultParams['sh404SEF_USE_NON_STANDARD_PORT'] = 0;
    // if not 0, will be used instead of Homepage itemid to display 404 error page
    $shDefaultParams['sh404SEF_PAGE_NOT_FOUND_FORCED_ITEMID'] = 0;
    // if not 0, sh404SEF will do a 301 redirect from http://yoursite.com/index.php
    // or http://yoursite.com/index.php?lang=xx to http://yoursite.com/
    // this may not work on some web servers, which transform yoursite.com into
    // yoursite.com/index.php, thus creating and endless loop. If your server does
    // that, set this param to 0
    $shDefaultParams['sh404SEF_REDIRECT_IF_INDEX_PHP'] = 1;
    // if superadmin logged in, force non-sef, for testing and setting up purpose
    $shDefaultParams['sh404SEF_NON_SEF_IF_SUPERADMIN'] = 0;
    // set to 1 to prevent 303 auto redirect based on user language
    // use with care, will prevent language switch to work for users without javascript
    $shDefaultParams['sh404SEF_DE_ACTIVATE_LANG_AUTO_REDIRECT'] = 1;
    // if 1, SEF URLs will only be built for installed components.
    $shDefaultParams['sh404SEF_CHECK_COMP_IS_INSTALLED'] = 1;
    // if 1, all outbound links on page will be reached through a redirect
    // to avoid page rank leakage
    $shDefaultParams['sh404SEF_REDIRECT_OUTBOUND_LINKS'] = 0;
    // time to live for url cache in hours : default = 168h = 1 week
    // Set to 0 to keep cache forever
    $shDefaultParams['SH404SEF_URL_CACHE_TTL'] = 168;
    // number of cache write before checking cache TTL.
    $shDefaultParams['SH404SEF_URL_CACHE_WRITES_TO_CHECK_TTL'] = 1000;
    // if set to 1, an email will be send to site admin when an attack is logged
    // if the site is live, you could be drowning in email rapidly !!!
    $shDefaultParams['sh404SEF_SEC_MAIL_ATTACKS_TO_ADMIN'] = 0;
    $shDefaultParams['sh404SEF_SEC_EMAIL_TO_ADMIN_SUBJECT'] = 'Your site %sh404SEF_404_SITE_NAME% was subject to an attack';
    $shDefaultParams['sh404SEF_SEC_EMAIL_TO_ADMIN_BODY'] = 'Hello !
    This is sh404SEF security component, running at your site (%sh404SEF_404_SITE_URL%).
    I have just blocked an attack on your site. Please check details below :
    ------------------------------------------------------------------------
    %sh404SEF_404_ATTACK_DETAILS%
    ------------------------------------------------------------------------
    Thanks for using sh404SEF!
    ';
    // number of pages between checks to remove old log files
    // if 1, we check at every page request
    $shDefaultParams['SH404SEF_PAGES_TO_CLEAN_LOGS'] = 10000;
    // SECTION : Virtuemart plugin parameters ----------------------------------------------------------------------------
    // set to 1 for products to have requested category name included in url
    // useful if some products are in more than one category. By default (param set to 0),
    // only one category will be used. If set to 1, all categories can be used
    $shDefaultParams['SH_VM_ALLOW_PRODUCTS_IN_MULTIPLE_CATS'] = 1;
    // SECTION : Deeppockets plugin parameters -----------------------------------------------------------------
    // set to 0 to have no cat inserted
    /234-ContentTitle/
    // set to 1 to have only last cat added /123-CatTitle/234-ContentTitle/
    // set to 2 to have all nested cats inserted /456-Cat1Title/123-Cat2Title/234-ContentTitle/
    $shDefaultParams['SH404SEF_DP_INSERT_ALL_CATEGORIES'] = 2;
    // if non-zero, id of each cat will be inserted in the url /123-CatTitle/
    $shDefaultParams['SH404SEF_DP_INSERT_CAT_ID'] = 0;
    // if non-zero, id of each content element will be inserted in url /234-ContentTitle/
    $shDefaultParams['SH404SEF_DP_INSERT_CONTENT_ID'] = 0;
    // if non-zero, DP links to content element will be identical to those
    // generated for Joomla regular content - usefull if this content can also be
    // accessed outside of DP, to avoid duplicate content penalties
    $shDefaultParams['SH404SEF_DP_USE_JOOMLA_URL'] = 0;
    // SECTION : com_smf plugin parameters --------------------------------------------------------------------------
    // set to 1 use simple URLs, without all details
    $shDefaultParams['sh404SEF_SMF_PARAMS_SIMPLE_URLS'] = 0;
    // prefix used in the DB for the SMF tables
    $shDefaultParams['sh404SEF_SMF_PARAMS_TABLE_PREFIX'] = 'smf_';
    // not used
    $shDefaultParams['sh404SEF_SMF_PARAMS_ENABLE_STICKY'] = 0;
    // SECTION : SOBI2 plugin parameters ----------------------------------------------------------------------------
    // set to 1 to always include categories in SOBI2 entries
    // details pages url
    $shDefaultParams['sh404SEF_SOBI2_PARAMS_ALWAYS_INCLUDE_CATS'] = 0;
    // set to 1 so that entry id is prepended to url
    $shDefaultParams['sh404SEF_SOBI2_PARAMS_INCLUDE_ENTRY_ID'] = 0;
    // set to 1 so that category id is prepended to category name
    $shDefaultParams['sh404SEF_SOBI2_PARAMS_INCLUDE_CAT_ID'] = 0;
    // SECTION : EXPERIMENTAL FEATURES - play at your own's risks ---------------------------------------------------
    // set to 1 to have Joomla use xhtml ouput for the main component.
    // you need to have Beez template installed (though not activated)
    $shDefaultParams['sh404SEF_ENABLE_XHTML_OUTPUT'] = 0;

    Dziekuje za pomoc

  9. #18
    Przeglądacz
    Dołączył
    28-01-2009
    Wpisy
    31
    Punkty
    10

    Domyślny

    w lini 58 dodalem / i blad zniknal. Jednak za kazdym razem kiedy wprowadzam jakies zmiany plik ten zapisywany jest z bledem czyli tylko z jednym /.

    Jak poprawic ten blad na stale zeby po zapisaniu wszystko bylo ok?
    dzieki za pomoc

  10. #19
    Przeglądacz
    Dołączył
    28-01-2009
    Wpisy
    31
    Punkty
    10

    Domyślny

    widze ze prowadze monolog ;)
    na forum:
    http://extensions.siliana.com/forums...17898#msg17898
    Znalazlem odpowiedz -w pliku sh404sef.class do pozycji /234-ContentTitle/ dodalem poprostu jeszcze jeden / ale ten koles nie wie czy to jest prawidlowe rozwiazanie wiec moze tutaj ktos mial podobny problem i wie czy to jest rozwiazanie czy nie?

    W pliku sh404sef.class sa dwie pozycji /234-ContentTitle/ i nie wiem czy slasha mam dodac do obydwu zeby czasem cos nie padlo jeszcze w trakcie pozniejszego uzytkowania.

Strona 2 z 2 PierwszyPierwszy 12

Reguły pisania

  • Nie możesz zakładać nowych tematów
  • Nie możesz dodawać wypowiedzi
  • Nie możesz dodawać załączników
  • Nie możesz poprawiać swoich postów
  •