Generic catch all rule

Topics: Developer Forum
Jun 17, 2011 at 1:23 PM
Hi everyone, I'm currently learning how to get around this rewrite tool. I currently have a series of rules like below Rewriterule ^/content/(.*) index.cfm?go=content.html&page=$1 What I'm wanting to know is how would I have a catch all rule in case the user enters In my system it just goes to a blank page... I would like to make it go to a 404 error screen...
Jun 28, 2011 at 6:44 AM

hi all,

i need same help.

i have a domain and now i want use subfolder as subdomian..


is is possible. plz help



Jul 17, 2011 at 6:35 PM
Edited Jul 17, 2011 at 6:35 PM

To answer the original question, there's a way to test for file existence in a RewriteCond -f.  Check the manual for details.

This works if the argument to page= is actually a filesystem file. 

Regarding the second question, I don't think it's the same at all, and also I don't understand what you want. Please post a clear complete question to a new thread.