mod_rewrite, brainfart!
mod_rewrite, brainfart!
- Started
- Last post
- 5 Responses
- benfal990
<enter thread>
<exit thread>
- acescence0
^api/([^/]+)/([^/]+)/([0-9]+)/fo... api/$1/$2/$3.$4 [L]
- acescence0
this is a good way to test your rules...
- rounce0
Cheers for changing my train of thought there acescence. It was that bloody preceeding slash!
RewriteCond %{REQUEST_URI} /api/(.*)\.([a-z]+)$
RewriteRule ^api/(.*)\.(.*)?$ api/$1/format/$2 [L]
- ********0
rounceyOUT