I use Limit and Mod_Rewrite to limit access in my .htaccess file, but I would like to prevent a user from accessing a single page. How can this be accomplished? Thanks.
jdMorgan
2:48 am on Oct 1, 2003 (gmt 0)
guillermo5000,
That depends on how you determine the speicific user. Having decided that, create a RewriteCond to detect the user, and use the page name in the RewriteRule.
Jim
guillermo5000
2:59 am on Oct 1, 2003 (gmt 0)
This is what I tried, but it doesn't seem to work...
Yes, there's a problem: You have no substitution (target URL or filepath) in the RewriteRule. You need either a valid substitution, or the special case "-" for use with [F] and [G] flags.
Also, all literal periods in regular-expressions patterns need to be escaped, as in "industry\.html". If this code is for use in .htaccess, you also may need to remove the leading slash from "/industry\.html" as well. It should work fine if you are using this code in httpd.conf.
Jim
guillermo5000
5:07 am on Oct 1, 2003 (gmt 0)
Ah! That works great! Thank you!
I know you have told me this before, but where can I read more about Mod_Rewrite?
Thanks again!
keyplyr
8:50 am on Oct 1, 2003 (gmt 0)
guillermo5000 - This [httpd.apache.org] is the link Jim always gives me :)