Themabewertung:
  • 0 Bewertung(en) - 0 im Durchschnitt
  • 1
  • 2
  • 3
  • 4
  • 5
Cooluri funktioniert nicht ganz richting
#1
Guten Tag,

Ich habe die folgende Typo3 installation:

Typo3 4.5.10
TemplaVoila 1.6.0
CoolUri 1.0.28
Basic SEO 0.8.1
sr_language_menu 1.5.2

Alles mapped mit YAML, fast wie in die Tutorials. Single Root, mit 3 sprachen; EN, DE und NL

Alles functioniert, aber CoolUri gibt mir immer problemen. Meine Default sprache is EN.

Wann ich der Cache und CoolUri Cache Leere, generiert er eigentlich nur die Niederländische Links. Nur wenn ich von einder Seite von Holländisch auf die Englische oder Deutsche gleiche page gehe, generiert er die Verweis.

mit der sitemap.xml generiert er erstens die richtige /nl/sitemap.xml, aber nach einige Studenten wird es wider überschrieben.

Es macht mir etwas verrückt..

Meine .htaccess

Code:
<IfModule mod_rewrite.c>

# Enable URL rewriting
RewriteEngine On

# To assist in debugging rewriting, you could use these lines
# DON'T enable it for production!
# This will only work in httpd.conf, not in .htaccess files
# RewriteLog /var/log/apache/rewrite.log
# RewriteLogLevel 9

# If you use the RealUrl extension, then you'll have to enable the next line.
# You will have to change this path if your TYPO3 installation is located
# in a subdirectory of the website root.
#
# If you place this in httpd.conf, you cannot use this directive in any case!
#RewriteBase /

# Rule for versioned static files (see $TYPO3_CONF_VARS[BE][versionNumberInFilename])
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.+)\.(\d+)\.(php|js|css|png|jpg|gif|gzip)$ $1.$3 [L]

# Stop rewrite processing if we are in the typo3/ directory
# For httpd.conf, use this line instead of the next one:
# RewriteRule ^/TYPO3root/(typo3|t3lib|tslib|fileadmin|typo3conf|typo3temp|uploads|showpic\.php|favicon\.ico)/ - [L]
# HIER IS DOOR HANS OP 2/1/2011 het subdirectory /typo3/ ingegeven (oude werkende config)
# RewriteRule ^/typo3/(typo3|t3lib|tslib|fileadmin|typo3conf|typo3temp|uploads|showpic\.php|favicon\.ico)/ - [L]
# HIER IS DOOR HANS OP 19/3/2011 het subdirectory /typo3/ weggehaald om de wijziging te reflecteren van het verwijderen van /typo3 directory
# RewriteRule ^/typo3/(typo3|t3lib|tslib|fileadmin|typo3conf|typo3temp|uploads|showpic\.php|favicon\.ico)/ - [L]
  RewriteRule ^/(typo3|t3lib|tslib|fileadmin|typo3conf|typo3temp|uploads|showpic\.php|favicon\.ico)/ - [L]

# Redirect http://mysite/typo3 to http://mysite/typo3/index_re.php
# and stop the rewrite processing
# For httpd.conf, use this line instead of the next one:
# RewriteRule ^/TYPO3root/typo3$ /TYPO3root/typo3/index.php [L]
# IN DEZE REWRITERULE IS DOOR HANS OP 2/1/2011 HET SUBDIRECTORY /TYPO3/ INGEBRACHT (en TYPO3root verwijderd)
# RewriteRule ^/typo3/typo3$ /typo3/typo3/index_re.php [L]
# HIER IS DOOR HANS OP 19/3/2011 het subdirectoy /typo3/ weggehaald om de wijziging te reflecteren
# RewriteRule ^/typo3$ /typo3/index_re.php [L]
  RewriteRule ^/typo3$ /typo3/index.php [L]

# If the file/symlink/directory does not exist => Redirect to index.php
# Important note: If you copy/paste this into httpd.conf instead
# of .htaccess you will need to add '%{DOCUMENT_ROOT}' left to each
# '%{REQUEST_FILENAME}' part.
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l

# Main URL rewriting.

# If you use Windows and SimulateStaticDocuments do not work, try adding a
# slash (/) right before 'index.php' below.

# The example shows how to rewrite only *.html and *.pdf files to index.php
# This may be helpful when using an extension that can generate PDF files
# on the fly.
# Example: RewriteRule .*\.(html|pdf)$ index.php [L]

# For httpd.conf, use this line instead of the next one that has no '#':
# RewriteRule .* /TYPO3root/index.php [L]

# For use with the RealUrl extension, you might need to remove the
# RewriteBase directive somewhere above and use this line instead of the
# next one:
# RewriteRule .* /index.php [L]

RewriteRule .* /index.php [L]

</IfModule>

### End: Rewrite stuff ###

Auch meine Cooluri.xml

Code:
<?xml version="1.0" encoding="utf-8"?>
<cooluri>
<urlsuffix>.html</urlsuffix>
<removetrailingslash>1</removetrailingslash>

  <cache>
    <usecache>1</usecache><!-- READONLY -->
    <params2cool>
      <!-- how often (in days) should be links updated (Typo3 cache needs to be cleared) -->
      <checkforchangeevery>1</checkforchangeevery>
    </params2cool>
    <cool2params>
      <!-- how many days should old links (those that are redirected to existing) should be kept active -->
      <oldlinksvalidfor>365</oldlinksvalidfor>
    </cool2params>
    
    <pagenotfound>
      <!-- the status has to meet HTTP protocol header -->
      <status>HTTP/1.0 404 Not Found</status>
      <behavior type="redirect"><![CDATA[/page-not-found.html]]></behavior>
      <!-- possible @type values:
        page - will show a file (loaded using file_get_contents)
        redirect - will redirect to a certaing URL
        message - will output a message
      -->
    </pagenotfound>
  </cache>

  <pagepath>
    <!-- first non-empty value will be used -->
    <title>tx_realurl_pathsegment,alias,subtitle,title</title>
    
    <saveto>id</saveto><!-- READONLY -->
    <default>0</default><!-- READONLY -->
    
    <userfunc>tx_cooluri->getPageTitle</userfunc>
    <t3conv>1</t3conv>
  </pagepath>

  <uriparts>
    <part>
      <parameter>tx_ttnews[tt_news]</parameter>
      <lookindb>
        <!-- to>SELECT title FROM tt_news WHERE uid=$1</to-->
        <!-- if you have news items in different languages in one folder, use this sql -->
        <to>SELECT title FROM tt_news WHERE (uid=$1 or l18n_parent=$1) AND sys_language_uid={L=0}</to>
        <t3conv>1</t3conv>
      </lookindb>
      <parameter>cHash</parameter>
    </part>
    <part>
      <parameter>tx_eeblog[showUid]</parameter>
      <lookindb>
        <to>SELECT subject FROM tx_eeblog_maintable WHERE uid=$1</to>
        <t3conv>1</t3conv>
      </lookindb>
    </part>
    <!-- you can move cHash to predefineparts to remove in from URL
         but first read the manual -->
    <part>
      <parameter>cHash</parameter>
    </part>
    
    <!-- common patterns -->
    
    <!-- this will just add this parameter value to URL -->
    <part>
    
    </part>
    <!-- this will look up parameter value in the database table "sometable" and if found
          the value will be transformed using Typo3 csconv into URL-like value.
        You can make all sorts of MySQL stuff here, such as add UID into the result:
        SELECT CONCAT(title,'-',uid) FROM ...
    -->
    <part>
      <parameter>paramB</parameter>
      <lookindb>
        <to>SELECT title FROM sometable WHERE uid=$1</to>
        <t3conv>1</t3conv>
      </lookindb>
    </part>
  </uriparts>
  
  <predefinedparts>
    <part>
      <parameter>no_cache</parameter>
    </part>
    <part>
      <parameter>cHash</parameter>
    </part>
    
    <!-- common patterns -->
    
    <!-- parts defined this way will be removed from URL -->
    <part>
      <parameter>paramC</parameter>
    </part>
    <!-- this will prefix a value with "prefix-". Cannot be localized.
    -->
    <part key="prefix-(.*)" regexp="1">
      <parameter>paramD</parameter>
    </part>
    <!-- if parameter matches value, key will be added to URL
         with mutliple values, use valuemaps
    -->
    <part key="thisWillAppearInUrl">
      <parameter>paramE</parameter>
      <value>ifParamEMatcesThisValue</value>
    </part>
  </predefinedparts>
  
  <valuemaps>
    <valuemap>
      <parameter>L</parameter>
      <!-- L is empty of 0, result is empty -->
      <value key="">0</value>
      <value key="de">1</value>
      <value key="nl">2</value>
    </valuemap>
    <valuemap>
      <parameter>type</parameter>
      <value key="sitemap.xml">776</value>
    </valuemap>
    <valuemap>
      <parameter>type</parameter>
      <value key="robots.txt">202</value>
    </valuemap>
</valuemaps>

<!-- this will put L param to the first position
      for more magic see manual -->
  <paramorder>
    <param>L</param>
  </paramorder>
  
<!-- READONLY START -->
<cooluris>1</cooluris>
  
</cooluri>

Und ein Teil meine Config Template
Zitat: config.linkVars = L
config.uniquelinkVars = 1
config.sys_language_overlay = content_fallback
config.language = en
config.locale_all = en_EN
config.htmlTag_langKey = en
config.sys_language_uid = 0
[browser = msie]
config.htmlTag_setParams = xmlns="http://www.w3.org/1999/xhtml" xmlns:v=”urnConfusedchemas-microsoft-com:vml” xml:lang="en"

[globalVar = GP:L = 1]
config.language = de
config.locale_all = de_DE
config.htmlTag_langKey = de-DE
config.sys_language_uid = 1
[globalVar = GP:L = 1] && [browser = msie]
config.htmlTag_setParams = xmlns="http://www.w3.org/1999/xhtml" xmlns:v=”urnConfusedchemas-microsoft-com:vml” xml:lang="de"

[globalVar = GP:L = 2]
config.language = nl
config.locale_all = nl_NL
config.htmlTag_langKey = nl-NL
config.sys_language_uid = 2
[globalVar = GP:L = 2] && [browser = msie]
config.htmlTag_setParams = xmlns="http://www.w3.org/1999/xhtml" xmlns:v=”urnConfusedchemas-microsoft-com:vml” xml:lang="nl"




// CoolURI aktivieren
config.tx_cooluri_enable = 1
config.redirectOldLinksToNew = 1

Wass mache ich falsch ?

Besten Dank
Hans
Zitieren
#2
hallo!
ich bin neu hier.

ich weiß nicht ob ich hier richtig bin, aber ich komme bei cooluri mehrsprachigkeit nicht weiter.

- cooluri links funktionieren alle wie gewünscht (domain.at/de/projekte/projekt1 + domain.at/en/projects/project1) - so weit so gut.
- jetzt gibt es aber immer noch die cooluri-url domain.at/projekte/projekt1 (domain.at/projects/project1 gibt's wieder nicht..) - warum, wie kann ich die weg machen?
- außer ich gebe explizit domain.at/de/projekte/projekt1 ein, gibt er mir als default immer domain.at/projekte/projekt1 - wo und wie kann ich das einstellen?
- wenn ich domain.at/de/ oder domain.at/en/ eingebe kommt page not found - wo und wie kann ich das einstellen?

vielen dank im voraus für jeden tipp!
lg
Zitieren


Gehe zu:


Benutzer, die gerade dieses Thema anschauen: 1 Gast/Gäste