Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save josefglatz/25958b7eab0597c28fb4e337e284d2b9 to your computer and use it in GitHub Desktop.
Save josefglatz/25958b7eab0597c28fb4e337e284d2b9 to your computer and use it in GitHub Desktop.
Redirect TYPO3 index.php with ID 1 to root page with slash
# Redirects an exact index.php?id=1 to /
RewriteCond %{QUERY_STRING} ^id=1$
RewriteRule ^index.php(.*) /$1? [R=301,L]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment