Skip to content
jdp edited this page Sep 13, 2010 · 2 revisions

Why are routes so ugly?

I want to keep Tessera as server agnostic as possible (I’ve already had to make a few concessions), so out of the box it uses ugly URIs. It’s also hard to predict how people will be formatting their URIs and rewrites, so it’s hard to make a generic link helper. If anyone has any suggestions I’d love to hear them, though.

How do I set up clean URLs?

Apache

Assuming app.php is in the document root of your domain, along with this .htaccess:

<IfModule mod_rewrite.c>
  RewriteEngine On
  RewriteBase /
  RewriteRule ^$ app.php?/ [L]
  RewriteRule (.*) app.php?/$1 [L]
</IfModule>
Clone this wiki locally