Author |
Message |
freemink
Junior WebHelper
Joined: 08 Apr 2002
Posts: 5
|
Posted:
Sun Jun 08, 2003 8:01 pm (21 years ago) |
|
Hi,
I have been using .htaccess file for redirection and other purposes, but whenever I try mod_rewrite I get problems.
For instance:
Code: | RewriteEngine on
RewriteCond %{HTTP_USER_AGENT} "BadBot"
RewriteRule /.* / [F] |
Produces the error:
Quote: | Forbidden
You don't have permission to access / on this server |
In fact, just
or
Produces the same error:
Quote: | Forbidden
You don't have permission to access / on this server |
According to PHP-Info the mod_rewrite module is loaded.
So, can I use mod_rewrite? If so, what is the correct syntax?
Thanks,
Darrell. |
|
|
|
|
Justin
4WebHelp Addict
Joined: 07 Jan 2002
Posts: 1060
|
Posted:
Sun Jun 08, 2003 9:57 pm (21 years ago) |
|
Hiya,
You trying to use it on a .f2s.com subdomain or your own domain name?
Just I'll test the servers and see what I can do first thing tomorrow morning if you answer me the above.
Cheers |
|
|
|
|
freemink
Junior WebHelper
Joined: 08 Apr 2002
Posts: 5
|
Posted:
Mon Jun 09, 2003 8:05 am (21 years ago) |
|
Hi Justin,
Thanks for the quick response.
My website is: "www.tealeaf.f2s.com"
Regards,
Darrell. |
|
|
|
|
Justin
4WebHelp Addict
Joined: 07 Jan 2002
Posts: 1060
|
Posted:
Mon Jun 09, 2003 6:37 pm (21 years ago) |
|
Hiya,
Will be checking it out tonight, sorry for the delay, been out on business all day and have a few calls to make tonight, but I will make time for it sometime soon.
What exactly do you want to use mod_rewrite to do?
Thanks |
|
|
|
|
freemink
Junior WebHelper
Joined: 08 Apr 2002
Posts: 5
|
Posted:
Mon Jun 09, 2003 9:24 pm (21 years ago) |
|
Hi Justin,
Received this from support@f2s
Quote: | Hi Darrell, unfortunately this function is used by internal server proccesses and cannot be used by your scripts..
Kind regards
Technical Support. |
So, looks like I can't use mod_rewrite.
I wanted to use it as a means of banning robots - eg:
Code: | RewriteEngine on
RewriteCond %{HTTP_USER_AGENT} "BadBot"
RewriteRule /.* / [F] |
Darrell. |
|
|
|
|
DrZaytsev
Junior WebHelper
Joined: 09 Jul 2002
Posts: 24
Location: Russia
|
Posted:
Sat Sep 13, 2003 3:54 pm (20 years, 9 months ago) |
|
Oh, that's stupid to have mod_rewrite installed and don't let the customers use it |
________________________________ God is real unless declared as integer... |
|
|
|
chal.nikkal
Junior WebHelper
Joined: 14 Jan 2015
Posts: 1
|
Posted:
Wed Jan 14, 2015 3:44 pm (9 years, 5 months ago) |
|
You trying to use it on a .f2s.com subdomain or your own domain name?
Just I'll test the servers and see what I can do first thing tomorrow morning if you answer me the above.??? |
________________________________ spring |
|
|
|
|
Page generation time: 0.124497 seconds :: 18 queries executed :: All Times are GMT
Powered by
phpBB 2.0
© 2001, 2002 phpBB Group :: Based on an FI Theme