I have installed my dev drupal in a bluehost, I built all the website in a URL like "www.mydomain.com/devdrupal". After that a bought a new domain and I configured it as an Addon Domain. If I access to the website without changing the base_url through "www.newdomain.com" I lose the website's template and i can't log in, and if I access through "www.mydomain.com/devdrupal" it works correctly.

When I change the base_url the template looks fine through the "www.newdomain.com" I can surf freely in the website, but login does not work. If I try to log with a valid account it happens nothing (just refresh page), and if I try to log with a not valid account it returns that the account does not exist.

Does anyone have an idea how to solve it?

Thanks in advance

Comments

vinayakg’s picture

You have an old drupal installation @
www.mydomain.com/devdrupal and it points to folder say
public_html/websitefolder

Supposing that the new addon domain also points to
this folder
public_html/websitefolder

set $base_url to use new domain name.

clear cache and check.
Administer › Site configuration >Performance
clear cache

aike’s picture

The new addon domain is also pointing to the same folder. If I set $base_url to use new domain name I can't log in, so I can't clear cache.

Thanks for the fast reply

aike’s picture

I have been checking to modify the .htaccess but I don't know if that's needed. Has something like that happened to someone?

Thanks in advance.

aike’s picture

It seems that the php session is created when I log in, this is what I do:

I'm trying to log in in the addon domain (with the base_url set at the addon domain). I write username and password correctly and the website just refreshes and I still don't have access to the admin panel BUT on the statics the user appears as autentificated.

Could this mean something?

Thanks in advance

vinayakg’s picture

aike’s picture

I had already tryed it and it didn't work. Is there any other suggestion? I would really appreciate it. If not, should I reinstall drupal? Cleaning cache, disabling modules and themes didn't work.

I need to eat something, c u later xD