|
|
|
||||
|
Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact us. |
![]() |
|
|||||||
| Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
|
Thread Tools |
|
|
#1 |
|
Confirmed User
Join Date: Apr 2003
Location: Loveland, CO
Posts: 5,526
|
Apache regular expression help
I'm retarded and can't get the correct regular expression for a LocationMatch directive in apache-- if anyone could throw it down, I'd much appreciate it:
The URI must begin with either "index.html" or [0-9]{1,5}, else deny it. I've tried Code:
^/!(index\.html|[0-9]{1,5})
^/([^0-9].*)|!(index\.html)
etc, etc.
__________________
Your post count means nothing. |
|
|
|
|
|
#2 |
|
Porn Meister
Industry Role:
Join Date: Feb 2005
Posts: 16,443
|
I dont know, but heres a link to check syntax and a bump.
http://httpd.apache.org/docs/1.3/mod...#locationmatch
__________________
43-922-863 Shut up and play your guitar.
|
|
|
|
|
|
#3 |
|
Confirmed User
Join Date: Apr 2003
Location: Loveland, CO
Posts: 5,526
|
Fuck it, found a work around with mod rewrite
Code:
RewriteEngine On
RewriteRule !^/[0-9]|index - [F]
__________________
Your post count means nothing. |
|
|
|