---
title: "Realurl - \"/\" und print.html"
url: "https://www.typo3.net/d/50388-realurl-und-printhtml"
source: "typo3.net"
tags: ["Extensions","Frage","RealURL","Server & Hosting"]
created: "2006-09-21"
last_reply: "2006-09-21"
replies: 1
solved: false
page: 1
pages: 1
lang: "de"
---

# Realurl - "/" und print.html

Extensions · 1 Antwort · gestartet 2006-09-21

## Eröffnungsbeitrag

**elv1s** · 2006-09-21 · [Beitrag #1](https://www.typo3.net/d/50388-realurl-und-printhtml/1)

Hallo,

Habe Realurl laufen und funktioniert soweit auch.

Habe folgendes im htaccess -File

################
  RewriteEngine On
  RewriteRule ^typo3$ - [L]
  RewriteRule ^typo3/.*$ - [L]
  RewriteRule ^uploads/.*$ - [L]
  RewriteRule ^fileadmin/.*$ - [L]
  RewriteRule ^typo3conf/.*$ - [L]

  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-l
  RewriteRule (.*[^/])$ http://%{HTTP_HOST}/$1/ [L,R]
  RewriteCond %{REQUEST_FILENAME}/index.html -f
  RewriteRule / %{REQUEST_URI}/index.html [L]
  RewriteCond %{REQUEST_FILENAME}/index.htm -f
  RewriteRule / %{REQUEST_URI}/index.htm [L]
  RewriteCond %{REQUEST_FILENAME}/index.php -f
  RewriteRule / %{REQUEST_URI}/index.php [L]
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-l
  RewriteRule .* /index.php
###################

Meine Links sehen wie folgt aus:

www.domain.de/autos/bmw/

Das ist soweit auch ok,

Für die Print-Ausgabe beutzte ich folgendes TS.

```typoscript
#####################################################
#####Print Version#####
         # DRUCKEN
         temp.PRINT = COA
         temp.PRINT {
            wrap = <a href="|" name="Drucken" title="Drucken" target="_blank" class="print">Drucken</a>
          
            10 = TEXT
            10.data = getIndpEnv:REQUEST_URI
            10.listNum.splitChar = .
            10.listNum = 0 
           10.wrap = |print.html
       }
         
        [globalString = ENV:REQUEST_URI = *php?id*]
        temp.PRINT.10 >
        temp.PRINT {
           10 = TEXT
           10.data = getIndpEnv:REQUEST_URI
           10.wrap = |&type=98
        }
        [GLOBAL]
         
        print = PAGE
        print {
           typeNum = 98

           bodyTag =<body bgcolor="#ffffff" leftmargin="" topmargin="" marginwidth="" marginheight="" onload="javascript:window.print()">
         
           #10 < styles.content.getLeft
           20 < styles.content.get
           #30 < styles.content.getRight
           #40 < styles.content.getBorder
        }
```

nun wird folgende Link erzeugt:

www.domain.de/autos/bmw/print.html/

das ist natürlich falsch.. sollte

www.domain.de/autos/bmw/print.html

sein.

"/" sollte bei "Files" also Dateien sowie bei .html natürlich nicht rangehängt werden.

Im htaccess sorgt ja folgende Befehl für die "/":
RewriteRule (.*[^/])$ http://%{HTTP_HOST}/$1/ [L,R]

Die möchte ich im Prinzip auch so haben nur eben bei print.html nicht.

Wäre toll wenn jemanden helfen kann.

Danke
Gruss

## Antworten

### [#2](https://www.typo3.net/d/50388-realurl-und-printhtml/2) · elv1s · 2006-09-21

Hallo,

also habe es gelöst...:

```typoscript
#####################################################
#####Print Version#####
         # DRUCKEN
         temp.PRINT = COA
         temp.PRINT {
            wrap = <a href="|" name="Drucken" title="Drucken" target="_blank" class="print">Drucken</a>
         
            10 = TEXT
            10.data = getIndpEnv:REQUEST_URI
            10.listNum.splitChar = .
            10.listNum = 0
           10.wrap = |?type=98
       }
         
        [globalString = ENV:REQUEST_URI = *php?id*]
        temp.PRINT.10 >
        temp.PRINT {
           10 = TEXT
           10.data = getIndpEnv:REQUEST_URI
           10.wrap = |&type=98
        }
        [GLOBAL]
         
        print = PAGE
        print {
           typeNum = 98

           bodyTag =<body bgcolor="#ffffff" leftmargin="" topmargin="" marginwidth="" marginheight="" onload="javascript:window.print()">
         
           #10 < styles.content.getLeft
           20 < styles.content.get
           #30 < styles.content.getRight
           #40 < styles.content.getBorder
        }
```

```typoscript
10.wrap = |print.html
```

ersetzen durch

```typoscript
10.wrap = |?type=98
```

gruss
Kasper

---

Quelle: „Realurl - "/" und print.html“, typo3.net, https://www.typo3.net/d/50388-realurl-und-printhtml
Beiträge von Mitgliedern des Forums. Bitte mit Link auf die Diskussion zitieren.
