T
T
TopazaPella2019-04-13 15:03:01
htaccess
TopazaPella, 2019-04-13 15:03:01

How to fix Internal Server Error after migrating Wordpress site to hosting?

I am migrating a Wordpress site from a local server (Wamp64) to Timeweb hosting.
The main one is displayed, the admin panel is working. When you click on any links to the pages of the site, an Internal Server Error appears.
In error logs:

AH00124: 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.

Changed all paths to https://example.com.
htaccess:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /example/
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /example/index.php [L]
</IfModule>

While writing, I realized that the matter is in the last line of htaccess! It was necessary to remove a piece of the path to index.php. I'll leave the post, because in the search for my question there was nothing essentially, suddenly it will come in handy for someone.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question