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:
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.
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:
PHP Code:
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]
Thank you so much in advance.
Comment