Andriy Sambir
Andriy Sambir

Reputation: 87

Issue with apache rewrite rule course 500 error

I have website build in custom CMS, and when we tried to change hosting it gives me 500 error. I realize that it is caused by this like in .htaccess:

RewriteRule .* phps/i.php [L]

On Apache log I did notice next result:

Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a backtrace.

I tried to use RewriteBase but it did not work.

Thanks for helping!

Upvotes: 0

Views: 51

Answers (2)

Viktor
Viktor

Reputation: 1

There are several solutions. One of them: put .htaccess file with one line "RewriteEngine Off" into phps/

Upvotes: 0

Croises
Croises

Reputation: 18671

Try with:

RewriteRule !phps/i\.php phps/i.php [L]

Upvotes: 2

Related Questions