HTACCESS crashes correctly on environment change

Asked

Viewed 148 times

1

I have to migrate from a website to a rookie for a dedicated server hosting and my htaccess simply decided to stop responding to the urls by sending the url to the error page.

It even mounts the url as it can be observed here hovering the mouse over the properties but clicking on it goes to a error page who is the home of the site.

I’ve been trying for days to solve the problem but I can’t. In the links below, you can see the server settings ancient and new and the file htaccess in question.

Ancient environment

http://www.colnaghi.com.br/info.php

New environment

http://www.colnag.com.br/info.php

.htaccess

DirectoryIndex index.html index.htm index.php

# AddHandler php56-script .php
# suPHP_ConfigPath /home/colnag/

# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^([a-z0-9]\-]+)=([0-9-]+)$ http://colnag.com.br/imovel_detalhe?cod_consulta=$2 [P]

RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress

Can someone help me solve?

I couldn’t see the Apache version on old lodging.

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.