PDA

View Full Version : 403 Forbidden error, .htaccess and my issue


droid101
Tue 19th Feb '08, 6:36pm
(Originally posted in 3.6 Troubleshooting forum and was suggested to go here.)

Okay, I did a search and found a few similar issues, but not identical, so I figured I'd post my own thread.

This morning when I tried to get to my site, I couldn't get to any page, it just said 403 Forbidden.

So... did some searching, found out about .htaccess files. So I was going to add one to my root, but noticed there was already one there. So I deleted it. Now I can get to my site just fine.

However, this worried me... I don't recall putting that .htaccess file there, and if I didn't do it, maybe it's necessary and it's going to screw things up later. Here's the code that was in the file:

RewriteEngine On
# # Block out any script trying to set a mosConfig value through the URL
RewriteCond %{QUERY_STRING} mosConfig_[a-zA-Z_]{1,21}(=|\%3D) [OR]
RewriteRule ^(.*)$ index.php [F,L]

So... do you think I did bad removing this? Should I put it back and find another solution to the 403 Forbidden?

Thank you so much in advance. :)

AWS
Tue 19th Feb '08, 10:27pm
Looks like your webhost added that to stop an exploit in Mambo. Since you don't have it installed you shouldn't need those in .htaccess.

droid101
Wed 20th Feb '08, 12:47am
Looks like your webhost added that to stop an exploit in Mambo. Since you don't have it installed you shouldn't need those in .htaccess.
*sigh of relief*

I kinda saw what the script did and wasn't sure if this was something I'd be vulnerable to if I removed it.

Thank you!! :)