---
title: "Typo3 Flow url rewrite"
url: "https://www.typo3.net/d/122374-typo3-flow-url-rewrite"
source: "typo3.net"
tags: ["Archiv","Flow","Frage"]
created: "2016-04-19"
last_reply: "2016-04-19"
replies: 0
solved: false
page: 1
pages: 1
lang: "de"
---

# Typo3 Flow url rewrite

Archiv › Flow · 0 Antworten · gestartet 2016-04-19

## Eröffnungsbeitrag

**ppinky** · 2016-04-19 · [Beitrag #1](https://www.typo3.net/d/122374-typo3-flow-url-rewrite/1)

```actionscript
#
# TYPO3 Flow context setting
#

# You can specify a default context by activating this option:
# SetEnv FLOW_CONTEXT Production

# If the root path is not the parent of the Web directory,
# TYPO3 Flow's root path must be specified manually:
# SetEnv FLOW_ROOTPATH /var/www/myapp/

#
# mod_rewrite configuration
#
<IfModule mod_rewrite.c>

	# Enable URL rewriting
	RewriteEngine On

	# Set flag so we know URL rewriting is available
	SetEnv FLOW_REWRITEURLS 1

	# You will have to change the path in the following option if you
	# experience problems while your installation is located in a subdirectory
	# of the website root.
	RewriteBase /

	# Stop rewrite processing no matter if a package resource, robots.txt etc. exists or not
	RewriteRule ^(_Resources/Packages/|robots\.txt|favicon\.ico) - [L]

	# Stop rewrite process if the path points to a static file anyway
	RewriteCond %{REQUEST_FILENAME} -f [OR]
	RewriteCond %{REQUEST_FILENAME} -l [OR]
	RewriteCond %{REQUEST_FILENAME} -d
	RewriteRule .* - [L]

	# Perform rewriting of persistent private resources
	RewriteRule ^(_Resources/Persistent/[a-zA-Z0-9]+/(.+/)?[a-f0-9]{40})/.+(\..+) $1$3 [L]

	# Perform rewriting of persistent resource files
	RewriteRule ^(_Resources/Persistent/.{40})/.+(\..+) $1$2 [L]

	# Make sure that not existing resources don't execute TYPO3 Flow
	RewriteRule ^_Resources/.* - [L]

	# Continue only if the file/symlink/directory does not exist
	RewriteRule (.*) index.php

</IfModule>

<IfModule mod_negotiation.c>

	# prevents Apache's automatic file negotiation, it breaks resource URLs
	Options -MultiViews

</IfModule>

<IfModule mod_setenvif.c>

	# Redirect authorization header when PHP is running as CGI
	SetEnvIfNoCase Authorization "Basic ([a-zA-Z0-9\+/=]+)" REMOTE_AUTHORIZATION=$0

</IfModule>

ErrorDocument 500 "<h1>Application Error</h1><p>The TYPO3 Flow application could not be launched.</p>"
```

Moin moin,

gibt es eine Möglichkeit, urls zu verändern? Sollte man es in der .htaccess vornehmen?

meine Url ist aktuell so aufgebaut.

```plaintext
http://domain.com/show?path=/Test/meinBeitrag
```

ich würde das ganze aber gerne ändern in

```plaintext
http://domain.com/show/Test/meinBeitrag
```

Leider sind meine htaccess Kenntnisse sehr überschaubar und mir fehlt jeglicher Ansatz.

Wäre natürlich optimal, wenn jemand ein Trick auf Lager hat.
Grüße

---

Quelle: „Typo3 Flow url rewrite“, typo3.net, https://www.typo3.net/d/122374-typo3-flow-url-rewrite
Beiträge von Mitgliedern des Forums. Bitte mit Link auf die Diskussion zitieren.
