jjuhala/HomeHub/development/Old/htdocs/.htaccess
RewriteEngine on # Force /index.php -> / RewriteCond %{THE_REQUEST} ^.*/index.php RewriteRule ^(.*)index.php$ /$1 [R=301,L] # Pwetty urls -- # /foo -> /foo/ (301) # /foo/ -> index.php?q=foo # /api/foo?a=bar -> /api/api.php?q=foo&a=bar RewriteRule ^api/([^.]+)$ api/api.php?q=$1&%{QUERY_STRING} [L] RewriteRule ^([a-zA-Z0-9_-]+)$ /$1/ [R=301,L] RewriteRule ^([a-zA-Z0-9_-]+)/$ index.php?q=$1 [L]
Files
