PDA

Zobacz pełną wersję : sh404SEF - jak usunąc index.php/ z URL



rebrov
27-10-2008, 14:04
Jak zmienic adres np www.xxx.pl/index.php/forum na www.xxx.pl/forum
w komponencie sh404SEF ???

Dylek
27-10-2008, 15:57
Wyklikac to sobie w konfiguracji komponentu :)

rebrov
28-10-2008, 00:06
wyklikałem wszedłem do rozszerzonych ustawien i przy zapisie
dostaje komunikat


Parse error: syntax error, unexpected '/' in /home/portal/domains/xxx/public_html/administrator/components/com_sef/default.sef.php on line 59

i wszystko pada :(

Znalazłem dziwny sposób na podmiane tego pliku oryginałem wtedy jakoś łapie ale znowu mam problemy np gdy wchodzę na jakies komponent na stronie dajmy na to adsmanager z co niektorych kategori powracam na strone glowna. Co to moze byc?

Dylek
28-10-2008, 01:09
a korzystasz z pliku .htaccess, ktory chyba jest warunkiem tego, zeby to dzialalo?

rebrov
28-10-2008, 10:24
korzystam:) tylko nie wiem czy jest dobrze skonfigurowany.Czy moglbys mi pokazac jak powinien wygladac .htaccess pod sh404SEF ??

neo_fox
28-10-2008, 11:27
Parse error: syntax error, unexpected '/' in /home/portal/domains/xxx/public_html/administrator/components/com_sef/default.sef.php on line 59i wszystko pada :(



Witamy w świecie sh404sef (zawsze się zastanawiam czy to jakaś ukryta wiadomość z tym 404 w nazwie - ROTLF), komponentu-pupilka administratorów JED :eek:

Zobacz czy nie ma jakiejś nowszej wersji tego cudownego komponentu, może załatali tą dziurę już :rolleyes:

rebrov
28-10-2008, 13:14
używam wersji com_sh404SEF_1.3.8_build_337.joomla1.0.x (http://joomlacode.org/gf/download/frsrelease/7988/28733/com_sh404SEF_1.3.8_build_337.joomla1.0.x.zip)
Pytalem admina hosta wiec mod rewrite wlaczony
a .htaccess wyglada tak:



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


dalej wywala mi ten komunikat co pisalem wczesniej..
jezeli nie ten komponent to jaki? Wazne by posiadal podobne opcje konfiguracyjne

neo_fox
28-10-2008, 13:28
Zobacz tu: http://extensions.siliana.com/forums/index.php?topic=9997.0
może Ci to w czymś pomoże.
Chociaż autor sh404sef wydusił z siebie typową dla niego odpowiedź:

This is not a bug,

Chociaż tu znowu stwierdza coś innego:
http://extensions.siliana.com/forums/index.php?topic=8871.0

There is certainly a bug in that new feature I added.

W każdym razie wydaje się że nie jesteś z tym problemem osamotniony:
http://extensions.siliana.com/forums/index.php?action=search2&search=default.sef.php%20on%20line%2059

Dylek
28-10-2008, 23:51
a jakos nie widze w tym Twoim .htaccess kluczowej linijki RewriteBase... Odkomentowales ta linijke i wpisales poprawna sciezke?

rebrov
29-10-2008, 11:29
Problem z bugiem rozwiązany, zmieniamy w pliku
.../administrator/components/com_sef/default.sef.php on line 59
w lini 59 z /234-ContentTitle/ na //234-ContentTitle/

druga sprawa pojawia mi sie index.php/ przy sobi2 i wywala na strone glowna
np wchodze sobie na xxx.pl/katalog_firm i gdy wybieram kategorie w linku siedzi index.php/kategoria

dodalem RewriteBase / bo faktycznie nie bylo:/

moj plik .htaccess wyglada tak:



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

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


wszystko z nim ok?

neo_fox
29-10-2008, 11:40
SOBI2 i sh404sef nie będą raczej nigdy współpracować gdyż jak pewnie zauważyłeś prowadzimy zimną wojnę z kolegami od sh404sef :rolleyes: