Skip to content

Instantly share code, notes, and snippets.

@cmllr
Created March 25, 2016 10:01
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 cmllr/aeecea05cdaa684d0714 to your computer and use it in GitHub Desktop.
Save cmllr/aeecea05cdaa684d0714 to your computer and use it in GitHub Desktop.
rewrite
http://Host.foo/index.php?/post/&post=bratwurst.md
http://Host.foo/post/bratwurst/
@adlerweb
Copy link

Wenn von http://Host.foo/post/bratwurst/ auf http://Host.foo/index.php?/post/&post=bratwurst.md umgeleitet werden soll:

(untested)
RewriteRule ^post/([^/.]+)/?$ index.php?/post/&post=$1.md [L]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment