.htaccess

Locked
EmilsM
Posts: 9
Joined: 02 May 2013, 19:47

.htaccess

Post by EmilsM »

Doesnt work, throws out a 500 erorr.
YamiKaitou
Amxbans Developer
Posts: 257
Joined: 17 Apr 2013, 14:09

Re: .htaccess

Post by YamiKaitou »

Then remove it
Retired, don't bug me
Zapy
Site Admin
Posts: 122
Joined: 01 Apr 2013, 15:52

Re: .htaccess

Post by Zapy »

is the .htaccess file even for amxbans?

Code: Select all

Options Indexes FollowSymLinks Includes
Order allow,deny
allow from all

php_flag register_globals Off
php_flag magic_quotes_gpc Off

RewriteEngine On

########## Begin - Rewrite rules to block out some common exploits
## If you experience problems on your site block out the operations listed below
## This attempts to block the most common type of exploit `attempts` to Joomla!
#
# Block out any script trying to base64_encode crap to send via URL
RewriteCond %{QUERY_STRING} base64_encode.*\(.*\) [OR]
# Block out any script that includes a <script> tag in URL
RewriteCond %{QUERY_STRING} (\<|%3C).*script.*(\>|%3E) [NC,OR]
# Block out any script trying to set a PHP GLOBALS variable via URL
RewriteCond %{QUERY_STRING} GLOBALS(=|\[|\%[0-9A-Z]{0,2}) [OR]
# Block out any script trying to modify a _REQUEST variable via URL
RewriteCond %{QUERY_STRING} _REQUEST(=|\[|\%[0-9A-Z]{0,2})
# Send all blocked request to homepage with 403 Forbidden error!
RewriteRule ^(.*)$ index.php [F,L]
Joomla?
Project Leader for Amxbans.net from 2013
Head Community admin for Warzone Short Valley
Swedish Gaming Community since 2000
www.warzone.nu
Striker
Posts: 7
Joined: 03 May 2013, 17:20

Re: .htaccess

Post by Striker »

YamiKaitou wrote:Then remove it
Yes to install amxbans a lot of persons must delete .htaccess from the .rar
And the problem is since the beginning.

I see in your code Zapy "php_flag magic_quotes_gpc Off", may be it's the problem. Personally this is in "on" with my host.
Zapy
Site Admin
Posts: 122
Joined: 01 Apr 2013, 15:52

Re: .htaccess

Post by Zapy »

Striker wrote:
YamiKaitou wrote:Then remove it
Yes to install amxbans a lot of persons must delete .htaccess from the .rar
And the problem is since the beginning.

I see in your code Zapy "php_flag magic_quotes_gpc Off", may be it's the problem. Personally this is in "on" with my host.
My guess is its something that SleepWalker or SeToY added but we deem it unnecessary.

and yes php_flag magic_quotes_gpc Off would create problems.
Project Leader for Amxbans.net from 2013
Head Community admin for Warzone Short Valley
Swedish Gaming Community since 2000
www.warzone.nu
Locked