.htaccess and redirect 301

2 posts / 0 new
Last post
#1 Tue, 04/30/2019 - 03:56

.htaccess and redirect 301


i have migrated siteA.com to siteB.com. Now i want make redirect 301 for siteA.com using file .htaccess Apache is enabled but when i transfer my .htaccess, site goes in error and i recive this message

Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator at root@localhost to inform them of the time this error occurred, and the actions you performed just before this error. More information about this error may be available in the server error log.

My file .htaccess for siteA.com have only string as

Redirect 301 /index.php/ https://siteB.com Redirect 301 /ipage1.php/ https://siteB.com/page1/ Redirect 301 /ipage2.php/ https://siteB.com/page2/ Redirect 301 /ipage3.php/ https://siteB.com/page3/ ..... and so on

Please, i have to modify or integrate my .htaccess file to solve ?

Tue, 04/30/2019 - 08:37


When seeing a 500 error, the key would be to look in the Apache error logs for that domain to see the full error.

You can find that in $HOME/logs/error_log.

What error appears there when trying to access your site?


Topic locked