500 Internal Server Error

Status
Not open for further replies.

oaxpx10m

New Member
Messages
3
Reaction score
0
Points
1
Hey, when I try to open my website https://www.oaxp.x10.mx/ it is giving me a 500 Internal Server Error, I was indexing folders and then what I think made the error is when I set www to No Indexing, but when I set it to default, it's not working anymore. What can I do please?
 

Anna

I am just me
Staff member
Messages
11,733
Reaction score
578
Points
113
You did have the options -Indexes in your .htacess, however having it active is/was not the issue. The issue was that it wasn't on a newline, it was attached on the same line as your last redirect statement, effectively making that statement invalid and thus causeing the issue.

The line looked like
Code:
RewriteRule ^(.*)$ http://www.oaxp.x10.mx/$1 [L,R=301,NC]Options -Indexes

I simply moved the Options -Indexes part to a newline.
 

oaxpx10m

New Member
Messages
3
Reaction score
0
Points
1
You did have the options -Indexes in your .htacess, however having it active is/was not the issue. The issue was that it wasn't on a newline, it was attached on the same line as your last redirect statement, effectively making that statement invalid and thus causeing the issue.

The line looked like
Code:
RewriteRule ^(.*)$ http://www.oaxp.x10.mx/$1 [L,R=301,NC]Options -Indexes

I simply moved the Options -Indexes part to a newline.

Here's my .htacess :
Code:
#Force www:
RewriteEngine on
RewriteCond %{HTTP_HOST} ^oaxp.x10.mx [NC]
RewriteRule ^(.*)$ http://www.oaxp.x10.mx/$1 [L,R=301,NC]

Options -Indexes
 

oaxpx10m

New Member
Messages
3
Reaction score
0
Points
1
You did have the options -Indexes in your .htacess, however having it active is/was not the issue. The issue was that it wasn't on a newline, it was attached on the same line as your last redirect statement, effectively making that statement invalid and thus causeing the issue.

The line looked like
Code:
RewriteRule ^(.*)$ http://www.oaxp.x10.mx/$1 [L,R=301,NC]Options -Indexes

I simply moved the Options -Indexes part to a newline.

OMG YES, I removed the Options - Indexes and my website is working right now Thank you for your help !!
 
Status
Not open for further replies.
Top