PDA

Zobacz pełną wersję : Sh404SEF i httacces



DJKRSS
05-10-2008, 21:32
Więc tak: Mam moduł Sh404SEF i wszystko jest ładnie-pięknie... - mam adres typu www.costam.pl/index.php/costamcos.html. Wrzuciłem na serwer odpowiedni plik .htaccess i teraz działają mi adresy typu www.costam.pl/costamcos.html, tyle że domyślnie w cmsie takich i nie ma i wszystkie podstrony w bocznym menu przekierowywują do www.costam.pl/index.php/costamcos.html i tu moje pytanie - jak zrobić aby domyślne adresy w cms z modem Sh404SEF były www.costam.pl/costamcos.html, a nie www.costam.pl/index.php/costamcos.html?

Dylek
05-10-2008, 23:23
Nie wiem jak we wczesniejszych, ale w ostatnio sciaganej wersji sh404 mozna to ustawic

DJKRSS
07-10-2008, 15:52
Mam wersję 1.3.8 - build_337 - Joomla, czyli najnowszą....
więc może mi napiszesz gdzie mogę to ustawić?

crazyluki
07-10-2008, 17:21
poszukaj sh404sef na forum - są już odpowiedzi na to pytanie, sam w tym tygodniu ze dwa razy odpowiadałem.

generalnie poszukaj w ustawieniach komponentu ( wlacz widok rozszerzony).

Pozdrawiam

DJKRSS
07-10-2008, 20:17
Dzięki - działa i jest piękne.

Taka jeszcze mała sprawa co do komponentu - czy da się w nim zmienić domyślny adres jakiegoś komponentu? Jeśli tak to jak? ;)

crazyluki
07-10-2008, 20:21
za pomocą wtyczki do danego komponentu można praktycznie wszystko zmienić, a wtyczke musisz sobie poszukać i ew przerobić.

DJKRSS
08-10-2008, 16:35
A gdzie znajdę wtyczkę do Zoom Media Gallery?

szmidt344
06-11-2008, 16:21
Witam.
Ja mam mały problem a mianowicie wszutko elegancko zamienia oprócz tego że jak w tytule mam krokpke (.) to wskakuje na 404 not found
Próbowałem w ustawieniach w "Strip characters" dodac kropkę ale wtedy na każdej wywala 404.

Gdzie to zmienic, bo w wielu tytułach mam "."

//edit już wiem
W polu "Character replacements list" należy dodac
.|_ "_" można zmienic na co się chce

i wszystko tyra

vitasklep
10-11-2008, 22:15
Dzięki - działa i jest piękne.



hej i jak to zrobiłeś - siedzę cały dzień i nie mogę sobie poradzić w pozbyciu się index.php

nemo
10-11-2008, 22:28
sh404SE->Click here to switch to extended display (with all available parameters)->sh404SEF Configuration->sh404SEF Configuration->Rewriting mode=with .htaccess (mod_rewrite)

vitasklep
10-11-2008, 22:30
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.

nemo
11-11-2008, 20:39
- 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

vitasklep
11-11-2008, 20:42
juz sobie poradziłam

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


i pomogło

bessos
09-03-2009, 18:41
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

vitasklep
09-03-2009, 19:55
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

bessos
10-03-2009, 03:07
Nawet nie wiem jak ci dziekowac :) oczywiscie pomoglo :)

bessos
12-03-2009, 12:06
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

bessos
12-03-2009, 12:49
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

bessos
12-03-2009, 12:59
widze ze prowadze monolog ;)
na forum:
http://extensions.siliana.com/forums/index.php?topic=2772.msg17898#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.