I have problem with drupal site when migrate it from dev to production. My website works fine until I tried to login as admin. After enter username,password ,and click login I got error page not found. Because I were redirected to a wrong path. For example. I were redirected to www.domain.com/cgp/user but the correct path should be www.domain.com/user. Bellow is actual screenshot. Does anyone have the same problem and know to to fix it? Thank you.
Bellow is virtual host config
<VirtualHost *:80>
ServerName www.domain.com
ServerAlias domain.com
DocumentRoot "/root_directory"
ProxyPass / http://webserver_id/cgp/
ProxyPassReverse / http://webserver_id/cgp/
ErrorLog "logs/cgp-error_log"
CustomLog "logs/cgp-access_log" common
# redirect non www to www
RewriteEngine On
RewriteCond %{HTTP_HOST} !^www\. [NC]
RewriteRule ^ http://www.%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
</VirtualHost>