[TYPO3-english] CoolUri: Page with no translation - strange URL: page.html?L=nnlsevfp
Michael Ditsch
michael.ditsch at hswt.de
Wed Aug 11 08:26:56 CEST 2010
Hello,
Problem: Pages with no translation will get an URL like this:
page.html?L=nnlsevfp
(No hiding of pages if no translation exist)
What is my mistake? Thanks for help!
Michael
1.) TYPO3 Ver. 4.4.2 and CoolURI 1.0.20
1.a.) Page with no translation
URI:
page1
Parameters:
L=nnlsevfp&id=122
URL:
http://www.mydomain.de/page1.html?L=nnlsevfp
1.b.) Page with translation:
URI:
page2
Parameters:
id=30
URL:
http://www.mydomain.de/page2.html
URI:
en/page2
Parameters:
L=1&id=30
URL:
http://www.mydomain.de/en/page2.html
2.) CoolUriConf.xml (only language part)
<?xml version="1.0" encoding="utf-8"?>
<cooluri>
<urlsuffix>.html</urlsuffix>
<removetrailingslash>1</removetrailingslash>
<cooluris>1</cooluris>
<valuemaps>
<valuemap>
<parameter>L</parameter>
<value key="">0</value>
<value key="en">1</value>
</valuemap>
</valuemaps>
<paramorder>
<param>L</param>
</paramorder>
</cooluri>
3.) TS Template Setup
# EXT:cooluri
simulateStaticDocuments = 0
baseURL = http://www.mydomain.de/
tx_cooluri_enable = 1
redirectOldLinksToNew = 1
prefixLocalAnchors = all
# Localization:
config {
linkVars = L
sys_language_mode = content_fallback
sys_language_overlay = 1
}
# Deutsch
config {
sys_language_uid = 0
language = de
locale_all = de_DE.UTF-8
htmlTag_langKey = de
}
# English
[globalVar = GP:L=1]
config {
sys_language_uid = 1
language = en
htmlTag_langKey = en
locale_all = english.UTF-8
}
[global]
config.htmlTag_langKey < config.language
4.) Apache2
# EXT:cooluri
RewriteEngine On
RewriteRule
^/(typo3|typo3temp|typo3conf|t3lib|tslib|fileadmin|uploads|showpic\.php)$
- [L]
RewriteRule
^/(typo3|typo3temp|typo3conf|t3lib|tslib|fileadmin|uploads|showpic\.php)/.*$
- [L]
RewriteRule ^typo3$ typo3/index_re.php [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l
# EXT:cooluri Main URL rewriting.
RewriteRule .* index.php [L]
--
HOCHSCHULE WEIHENSTEPHAN-TRIESDORF | University of Applied Sciences
Fac. BB/LA - Data Center - IT Service
Michael Ditsch
Weihenstephaner Berg 5 | 85354 Freising | Germany
Tel: +49 (0)8161 71- 5932
http://www.hswt.de
More information about the TYPO3-english
mailing list