Joomla! Forum Schweiz wird Teil der D-A-CH Community

Nach vielen Jahren als zentrale Anlaufstelle für Fragen rund um Joomla! in der Schweiz wird das Joomla! Forum Schweiz künftig als Archiv weitergeführt.

Die Joomla!-Communities aus Deutschland, Österreich und der Schweiz arbeiten heute enger denn je zusammen. Deshalb bündeln wir künftig auch den deutschsprachigen Support und Austausch an einem gemeinsamen Ort im Joomla! D-A-CH Forum.

Für neue Fragen, Diskussionen und den Austausch mit der Community nutzt bitte ab sofort:

forum.joomla.de

Das Joomla! Forum Schweiz bleibt weiterhin bestehen und wird als Archiv im Lesemodus erhalten. Die vielen Beiträge, Lösungen und Erfahrungen aus den vergangenen Jahren bleiben damit weiterhin zugänglich und über die Suche auffindbar.

Wir bedanken uns herzlich bei allen Mitgliedern, Moderatoren und Helfern, die das Schweizer Joomla! Forum über viele Jahre mit ihrem Wissen und ihrem Engagement geprägt haben.

Wir sehen uns im Joomla! D-A-CH Forum!

Seo und Sef einstellungen

  • Raimund
  • Autor
  • Neues Mitglied
  • Neues Mitglied
Mehr
17 Nov. 2008 14:00 #18694 von Raimund
Seo und Sef einstellungen wurde erstellt von Raimund
Hallo liebe Mitglieder des Forums,

kann mir jemand behilflich sein bei der Einstellung von Seo und Sef.

mein Erstes Projekt und da habe ich leider noch zu wenig Routine.

1. htaccess.txt ist umgeschrieben in htaccess :
Code:
## # @version $Id: htaccess 4756 2006-08-25 16:07:11Z stingrey $ # @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) &#91;NC,OR&#93; ##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) &#91;NC,OR&#93; ##optional - see notes## # to this: # RewriteCond %{REQUEST_URI} ^(/test/component/option,com) &#91;NC,OR&#93; ##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) &#91;NC,OR&#93; ##optional - see notes## RewriteCond %{REQUEST_URI} (/|.htm|.php|.html|/&#91;^.&#93;*)$ &#91;NC&#93; RewriteRule ^(content/|component/) index.php # ########## End - Joomla! core SEF Section ########## Begin - 3rd Party 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) &#91;NC,OR&#93; ##optional - see notes## #RewriteCond %{REQUEST_URI} (/|.htm|.php|.html|/&#91;^.&#93;*)$ &#91;NC&#93; #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) &#91;NC,OR&#93; ##optional - see notes## RewriteCond %{REQUEST_URI} (/|.htm|.php|.html|/&#91;^.&#93;*)$ &#91;NC&#93; 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_&#91;a-zA-Z_&#93;{1,21}(=|%3D) &#91;OR&#93; # Block out any script trying to base64_encode crap to send via URL RewriteCond %{QUERY_STRING} base64_encode.*(.*) &#91;OR&#93; # Block out any script that includes a <script> tag in URL RewriteCond %{QUERY_STRING} (<|%3C).*script.*(>|%3E) &#91;NC,OR&#93; # Block out any script trying to set a PHP GLOBALS variable via URL RewriteCond %{QUERY_STRING} GLOBALS(=|&#91;|%&#91;0-9A-Z&#93;{0,2}) &#91;OR&#93; # Block out any script trying to modify a _REQUEST variable via URL RewriteCond %{QUERY_STRING} _REQUEST(=|&#91;|%&#91;0-9A-Z&#93;{0,2}) # Send all blocked request to homepage with 403 Forbidden error! RewriteRule ^(.*)$ index.php &#91;F,L&#93; # ########## End - Rewrite rules to block out some common exploits
dann habe ich Seo umgestellt und erhalte immer diese Meldung:

Not Found

The requested URL /component/option,com_alberghi/Itemid,52/lang,de/ was not found on this server.
Apache Server at --ALTER LINK WURDE ENTFERNT-- Port 80



bitte um Hilfe.

vielen Dank Raimund

€dit von Sam Fisher: Bitte immer Code Tag's verwenden.
Mehr
18 Nov. 2008 07:56 #18710 von jimbo
jimbo antwortete auf Re: Seo und Sef einstellungen
Der Rest der Seite funktioniert? Dann solltest Du Dich einmal diesem Teil der htaccess widemn und die Instruktionen dazu lesen und austesten:

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


Aktivieren kannst Du das, indem Du die Raute (#) vor der ersten Zeile in diesem Block die mit RewriteCond beginnen entfernst (nur die am Zeilenanfang und nur die der besagten Zeile!).

Gruss Dany (Jimbo)
Kein Support per PN.
  • DietmarH
  • Neues Mitglied
  • Neues Mitglied
Mehr
18 Nov. 2008 12:24 #18723 von DietmarH
DietmarH antwortete auf Re: Seo und Sef einstellungen
Vorher würde ich aber einen (den richtigen) der entkommentierten Blöcke wieder auskommentieren. Ich habe jetzt zwar keine Lust, mit durch die Rewrite-Regeln zu graben, aber ich kann mir nicht vorstellen, daß es gut geht, zwei Regelsätze anzuwenden.
  • Sam Fisher
  • Neues Mitglied
  • Neues Mitglied
Mehr
18 Nov. 2008 14:02 #18734 von Sam Fisher
Sam Fisher antwortete auf Re: Seo und Sef einstellungen
Hallo !

1. htaccess.txt ist umgeschrieben in htaccess :

Das muss aber .htaccess heißen. Der Punkt davor ist wichtig.

Viele Grüße
Sam
  • Raimund
  • Autor
  • Neues Mitglied
  • Neues Mitglied
Mehr
19 Nov. 2008 17:23 #18800 von Raimund
Raimund antwortete auf Re: Seo und Sef einstellungen

jimbo schrieb: Der Rest der Seite funktioniert? Dann solltest Du Dich einmal diesem Teil der htaccess widemn und die Instruktionen dazu lesen und austesten:

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


Aktivieren kannst Du das, indem Du die Raute (#) vor der ersten Zeile in diesem Block die mit RewriteCond beginnen entfernst (nur die am Zeilenanfang und nur die der besagten Zeile!).



Danke für die Hilfe habe ich versucht aber dann erhalte ich immer die Fehlermeldung error500

weiss auch nicht mehr wie weiter, alles andere funktioniert einwandfrei nur die Seo und Sef einstellung macht mich fertig.
liebe Grüße Raimund
  • Raimund
  • Autor
  • Neues Mitglied
  • Neues Mitglied
Mehr
19 Nov. 2008 17:24 #18801 von Raimund
Raimund antwortete auf Re: Seo und Sef einstellungen

Sam Fisher schrieb: Hallo !

1. htaccess.txt ist umgeschrieben in htaccess :

Das muss aber .htaccess heißen. Der Punkt davor ist wichtig.

Viele Grüße
Sam


danke für die Hilfe hab ich umgeschrieben dann geht schon gar nichts mehr.

liebe Grüße Raimund
  • Sam Fisher
  • Neues Mitglied
  • Neues Mitglied
Mehr
19 Nov. 2008 18:08 #18803 von Sam Fisher
Sam Fisher antwortete auf Re: Seo und Sef einstellungen
Tja, weil dann die .htacces auch greift.

Ich habe den themenverlauf jetzt nicht im kopf, aber versuche es doch einfach mit dem Originalen File und prüfe ob auf deinem Server der mod_rewrite überhaupt aktiv ist...
viele Grüße
Sam
  • Raimund
  • Autor
  • Neues Mitglied
  • Neues Mitglied
Mehr
19 Nov. 2008 18:33 #18807 von Raimund
Raimund antwortete auf Re: Seo und Sef einstellungen

Sam Fisher schrieb: Tja, weil dann die .htacces auch greift.

Ich habe den themenverlauf jetzt nicht im kopf, aber versuche es doch einfach mit dem Originalen File und prüfe ob auf deinem Server der mod_rewrite überhaupt aktiv ist...
viele Grüße
Sam


Hi Sam,

ja jetzt funktioniert es!

habe jetzt die Originale htaccess genommen wieder umgeschrieben und es geht.

habe aber immer noch soooo lange namen: --ALTER LINK WURDE ENTFERNT-- soll ich joomla sef installieren und dann jede einzelne beschreiben oder hast du einen tip für mich?


liebe Grüße Raimund
Mehr
19 Nov. 2008 18:36 #18809 von jimbo
jimbo antwortete auf Re: Seo und Sef einstellungen
Ich kann mich Sam nur anschliessen, Du solltest das langsam angehen:
1) evtl. installierte SEF-Komponenten von Drittanbietern deaktivieren
2) im Backend von Joomla in der Konfiguration bei SEO/SEF alle drei Punkte auf ja
3) originale htaccess.txt umbenennen in .htaccess

wenn's dann einen Error500 gibt:
4) Options FollowSymLinks auskommentieren (# Options FollowSymLinks)

wenn's dann immer noch URLs mit .../component/option,yxz... gibt
5) beim Hoster nachfragen ob mod_rewrite zur Verfügung steht

EDIT: Vorerst solltest Du nichts installieren...? Bring zuerst die in Joomla integrierte SEF zum Laufen, danach kannst Du höhere Berge besteigen. Und was willst "...jede einzelne Beschreiben...", was meinst Du damit?

Gruss Dany (Jimbo)
Kein Support per PN.
  • Raimund
  • Autor
  • Neues Mitglied
  • Neues Mitglied
Mehr
19 Nov. 2008 18:42 #18812 von Raimund
Raimund antwortete auf Re: Seo und Sef einstellungen

jimbo schrieb: Ich kann mich Sam nur anschliessen, Du solltest das langsam angehen:
1) evtl. installierte SEF-Komponenten von Drittanbietern deaktivieren
2) im Backend von Joomla in der Konfiguration bei SEO/SEF alle drei Punkte auf ja
3) originale htaccess.txt umbenennen in .htaccess

wenn's dann einen Error500 gibt:
4) Options FollowSymLinks auskommentieren (# Options FollowSymLinks)

wenn's dann immer noch URLs mit .../component/option,yxz... gibt
5) beim Hoster nachfragen ob mod_rewrite zur Verfügung steht

EDIT: Vorerst solltest Du nichts installieren...? Bring zuerst die in Joomla integrierte SEF zum Laufen, danach kannst Du höhere Berge besteigen. Und was willst "...jede einzelne Beschreiben...", was meinst Du damit?



Hallo Jimbo,

danke für die Reihenfolge Deiner Mühe.

1.) habe Sef von Joomla deiinstaliert!
2.) im backend alles angeklickt
3.) htaccess.txt neu installiert original ohen Änderungen.
4.) htaccess.txt umgeschrieben in .htaccess

mod_rewrite auch beim Hoster aktieviert

es funktioniert keine FEHLERMELDUNGEN ABER die ADRESSEN sind immer noch soooo lang.

--ALTER LINK WURDE ENTFERNT--

liebe Grüße und nochmal danke IHR SEIT SUPER
Moderatoren: Tribal6RePaoDragonlordChris Hoefligerpascaleadiheutschi.ch
Powered by Kunena Forum

Joomla! Verband Schweiz - Mitglied werden