.htaccess and ModRewrite : how to get it work

Status
Not open for further replies.

tryma

New Member
Messages
10
Reaction score
0
Points
0
I am trying to set a simple Rewrite rule in my .htaccess file using the " RewriteEngine ON " option but apparently there is someting wrong.

The rule is:

Code:
RewriteRule (.*)index.php

and when it's enabled in the .htaccess file, my site results in a " Misconfiguration Error ".

Also, I can't obtain any error log from my CPanel, so I can't figure out what's wrong.

Thakyou in advance for your time...
 

calistoy

Free Support Volunteer
Community Support
Messages
5,602
Reaction score
87
Points
48
What are you trying to do by setting your rewrite rule?
 

Anna

I am just me
Staff member
Messages
11,748
Reaction score
581
Points
113
Try adding "RewriteBase /" (without quotes) to the .htaccess, after enabling rewrite, and before any rewrite directives
 

tryma

New Member
Messages
10
Reaction score
0
Points
0
I would like to thank you ALL for your precious help, and please beg my pardon for answering so late.

What is the error code ?

The error is generic 500 Internal Server Error. Below the full error page.
Code:
[SIZE="3"]Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, no-reply@x10hosting.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.[/SIZE]


What are you trying to do by setting your rewrite rule?

The rewrite rule is part of the htaccess file needed by Oxwall to run correctly. I am reading official documentation on Rewrite Rule to better understand its behavior .

Try adding "RewriteBase /" (without quotes) to the .htaccess, after enabling rewrite, and before any rewrite directives

Thankyou, I will let you know as soon as update procedures on "boru" are finished ( since I can't use FTP access because of the RO FS.

---------- Post added at 05:30 PM ---------- Previous post was at 08:16 AM ----------

Try adding "RewriteBase /" (without quotes) to the .htaccess, after enabling rewrite, and before any rewrite directives

Thankyou! This solved the problem! :)
 
Status
Not open for further replies.
Top