mod-rewrite: Replacing some characters in a url
- by GeorgeCalm
Is it possible to replace some forward slashes (/) of a URL to dots (.) in a RewriteRule? It doesn't have to be done exclusively with a RewriteRule, but definitely not with a script.
Example 1:
INPUT: /document/my/document.html
OUTPUT: /document-my.document.html
Example 2:
INPUT: /document/depth/of/path/can/vary.html
OUTPUT: /document-depth.of.path.can.vary.html