View Single Post
Old 12-12-2012, 10:10 AM   PM User | #5
jeddi
Senior Coder

 
Join Date: May 2006
Posts: 1,513
Thanks: 26
Thanked 4 Times in 4 Posts
jeddi has a little shameless behaviour in the past
Hi,

Thanks for helping out.

I tried what you suggested.

Here is my .htaccess file:

Code:
Options +FollowSymLinks 
RewriteEngine On

# BELOW IS STUFF TO BLOCK SPAMMING ATTACKS 
######################################################
# Block out any script trying to set a mosConfig value through the URL
RewriteCond %{QUERY_STRING} mosConfig_[a-zA-Z_]{1,21}(=|%3D) [OR]

# 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 [NC,L]
#
######################################################

RewriteRule ^/coupons/([^.]+)$ coupon.php?a=$1 [NC,QSA,L]
But when I enter this:
http://www.mbpg.net/coupons/1

Quote:
Not Found

The requested URL /coupons/1 was not found on this server.
But when I enter this:
http://www.mbpg.net/coupon.php?a=1

I get my test page come up.

So looks like this redirect isn't working.

Redirects on other sites on this server are working OK

There must be something I have done wrong ??



.
__________________
If you want to attract and keep more clients, then offer great customer support.

Support-Focus.com. automates the process and gives you a trust seal to place on your website.
I recommend that you at least take the 30 day free trial.
jeddi is offline   Reply With Quote