code_junkie

mod_rewrite to alias one file suffix type to another

Nov 10th, 2011
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.14 KB | None | 0 0
  1. RewriteEngine on
  2.  
  3. # Do not separate these two rules so long as the first has S=1
  4. RewriteRule (.*).php$ $1.cfm [S=1]
  5. RewriteRule .cfm$ - [R=404]
Add Comment
Please, Sign In to add comment