Problem drupal with domain and redirection 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

&lt;VirtualHost *:80&gt;
   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]
&lt;/VirtualHost&gt;
The problem could be in several areas, depending on your deployment method.

First of all, have you cleared your caches?  This fixes most issues, especially after importing a database.

It could be a server configuration issue, did you set it up or did someone else?  There could be version differences between the installed software on the dev and prod servers.

Lastly, have you tried setting the $base_url in your settings.php?