Hi liebe Community,
hoffe hier kann mir jemand helfen. Und zwar habe ich Cooluri installiert und habe nun diesen komischen Effekt das bei jeder Endung "?=" angehängt wird. Also z.b.
news.html?=
So findet er natürlich die Seite nicht. Und ich finde den Fehler nicht.
Meine CoolUri.xml
<?xml version="1.0" encoding="utf-8"?>
<cooluri>
<urlsuffix exclude=".xml$">.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>0</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="message"><![CDATA[ <h1>Page not found!</h1> ]]></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 concat( CAST( DATE_FORMAT( FROM_UNIXTIME( datetime ) , GET_FORMAT( DATE, 'ISO' ) ) AS char( 10 ) ) , '_', title ) FROM `tt_news` WHERE uid = $1</to>
<translatetoif>
<match>^[0-9]+$</match>
</translatetoif>
<t3conv>1</t3conv>
</lookindb>
</part>
<part>
<parameter>tx_nicosdirectory_pi1</parameter>
<lookindb>
<to>SELECT name FROM tx_nicosdirectory_entry WHERE uid=$1</to>
<t3conv>1</t3conv>
</lookindb>
</part>
<part>
<parameter>tx_nicosdirectory_pi1[value]</parameter>
</part>
<part>
<parameter>tx_nicosdirectory_pi1[mode]</parameter>
</part>
<part>
<parameter>tx_nicosdirectory_pi1[modifier]</parameter>
</part>
<part>
<parameter>tx_macinabanners_pi1[banneruid]</parameter>
<lookindb>
<to> SELECT customer FROM tx_macinabanners_banners WHERE uid=$1</to>
<t3conv>1</t3conv>
</lookindb>
</part>
<part>
<parameter>tx_dmmjobcontrol_pi1[job_uid]</parameter>
<lookindb>
<to>SELECT job_title FROM tx_dmmjobcontrol_job WHERE uid=$1</to>
<translatetoif>
<match>^[0-9]+$</match>
</translatetoif>
<t3conv>1</t3conv>
</lookindb>
</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>
<parameter>paramA</parameter>
</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>cHash</parameter>
</part>
<part>
<parameter>tx_nicosdirectory_pi1[mode]</parameter>
</part>
<part>
<parameter>tx_nicosdirectory_pi1[modifier]</parameter>
</part>
<part>
<parameter>tx_nicosdirectory_pi1[pointer]</parameter>
</part>
<part>
<parameter>tx_ttnews[backPid]</parameter>
</part>
<part>
<parameter>no_cache</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>
<value key="">0</value>
<value key="de">1</value>
<value key="es">2</value>
<value key="fr">3</value>
<value key="it">4</value>
<value key="cz">5</value>
<value key="po">6</value>
<value key="tu">11</value>
<value key="ru">10</value>
<value key="cn">9</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 das ist die .htaccess
RewriteEngine On
RewriteRule ^/(typo3|typo3temp|typo3conf|t3lib|tslib|fileadmin|uploads|showpic\.php)$ - [L]
RewriteRule ^/(typo3|typo3temp|typo3conf|t3lib|tslib|fileadmin|uploads|showpic\.php)/.*$ - [L]
# Redirect old simulateStaticDocuments urls
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_FILENAME} !-f
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_FILENAME} !-d
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_FILENAME} !-l
RewriteRule ^/.+\.(.+)\.[0-9]\.html /index.php?id=$1 [R=301,L,QSA,NE]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l
RewriteRule .* index.php
Vielleicht kann mir ja hier einer den rettenden Tipp geben :-)
Gruß
tmueller