removing multiple file extensions

Discussion in 'Apache' started by blackjack7, Apr 6, 2010.

  1. #1
    Is it possible to remove more than one file extension using mod_rewrite? I want to rename example.com/index.php to example.com/index, but also example.com/style.css to style. I don't want to use <?php Header ("Content-type: text/css");?> to make the rewrite rule apply to the stylesheet as that would mean changing the extension of said stylesheet. Any suggestions?
     
    blackjack7, Apr 6, 2010 IP