Mod god,
That worked well when I put the *'s in... also NC I guess makes it case insensitive... perfect.
I am trying to do this with sub domains. A couple of questions that I just can't get my head around.
Can you make a rule that applies to all sub domains or do you have to specify it for each sub domain. For example... I'd like to remove CFM as the file extension (Cold Fusion).. would I have to specify that for each sub domain?
I also wanted to call a page called page.cfm if a file is not found.
I used the following:
- Code: Select all
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^/?(.*)$ /page.cfm?page=$1 [L]
I am using sub domains and it blew everything up, is that because I didn't specify a sub domain as one of the RewriteCond?
Thanks
Simon