Resolved 403 forbidden message

Status
Not open for further replies.

spacresx

Community Advocate
Community Support
Messages
2,183
Reaction score
195
Points
63
everything was fine a few days ago when i looked at my website,
i made NO changes since, so it should work fine but it dont.
but now i get this message for no reason. (see screenshot)

whats up with that ??
 

Attachments

  • 403.jpg
    403.jpg
    27.5 KB · Views: 5

Anna

I am just me
Staff member
Messages
11,739
Reaction score
579
Points
113
We did switch from Apache to LiteSpeed, that may have something to do with it.

When renaming your .htaccess the site works, so it would appear that there's something in that causing the problem. I see a note at the top of it that it was edited today, so whatever you did edit may be the problem.

I'd say it relates to this in your error log: MIME type [application/x-httpd-php5.6] for suffix '.php' does not allow serving as static file, access denied!

I also saw in the .htaccess that you have a path for autoprepend that is incorrect (it changed when we moved to DA), and should be in the form: /home/USER/domains/DOMAIN/public_html
 

spacresx

Community Advocate
Community Support
Messages
2,183
Reaction score
195
Points
63
thanks Anna,
We did switch from Apache to LiteSpeed
that explains it all, my htaccess was written for Apache not Litespeed.

i made the corrections you suggested and commented out the line
AddHandler application/x-httpd-php5.6 that was the cause of the 403.
that was used in Apache to get simple php code/snippets like php time and date
to display in html pages. (not php pages)
but once i commented that all was fine again.
=)
 
Status
Not open for further replies.
Top