Hey folks,

Here is the problem:
I have an drupal installation on a subfolder ie www.sub.sitename.com
but I bought another domain and resolved the new domain to the drupal folder.
So when you type www.newsitename.com == www.sub.sitename.com.
but after that I deleted my subdomain and changed the baseURL (/site/default/settings) to the new domain
Everything was working fine except that i am receiving the following error when i try to log in or to log out

"The server can not find the requested page:
sub.sitename.com/admin/settings/admin_menu (port 80)
Please forward this error screen to sub.sitename.com's WebMaster.

But sometimes it works ok.
I guess I have to modify the file htaccess but what and how ... no idea :(

Please help!

Comments

pbarnett’s picture

Make sure you've cleared all the cached content; that's frequently the cause of problems like this.

ognyang’s picture

i tried to clear the cache but i received the following message

The server can not find the requested page:
subdomain.domain.com/admin/settings/performance (port 80)

:/
edit:
hmmm I opened the settings file and baseURL was the old one sub.domain.com
I renamed it again and refreshed the page and when i pressed the log out button i received this

Great Success !
Apache is working on your cPanel® and WHM™ Server

If you can see this page, then the people who manage this server have installed cPanel and WebHost Manager (WHM) which use the Apache Web server software and the Apache Interface to OpenSSL (mod_ssl) successfully. They now have to add content to this directory and replace this placeholder page, or else point the server at their real content.
ATTENTION!

If you are seeing this page instead of the site you expected, please contact the administrator of the site involved. (Try sending an email to .) Although this site is running cPanel, WebHost Manager, and Apache software it almost certainly has no other connection to cPanel Inc. or the Apache Group. Please do not send mail about this site or its contents to cPanel Inc. or the Apache Group.
About cPanel:

cPanel is a leading provider of software for the webhosting industry. If you would like to learn more about cPanel please visit our website at www.cpanel.net. Please be advised that cPanel Inc. is not a web hosting company, and as such has no control over content found elsewhere on this site.
About Apache HTTP Server:

The Apache HTTP Server is an open source web server which powers many of the worlds web sites. The Apache HTTP server is part of the Apache Group's many influential projects. Their efforts have helped shape much the world wide web, and they continue to be a dominating force in the web hosting industry.

ognyang’s picture

anyone? :(

ognyang’s picture

am I asking stupid questions or just nobody can help me!??

Luna’s picture

I had some issues with Clean URL's when I phisically moved to another host. Maybe it gives you trouble too. If you switch off Clean URL's, does the problem persist?

ognyang’s picture

OK i just did it but it is still the same shit
everytime i open my settings.php file the base_url is pointing to my old subdomain :(
EDIT:
I saw that the url is sub.domain.com/cgi-sys/defaultwebpage.cgi
I mean that is the url when the error appears.

davidlark’s picture

... for avoiding this type of weirdness, providing flexibility, & facilitating upgrades:

* Most hosting plans offer a free domain name. Use this to register some garbage name such as chdtvbrsr.net, and make this the base site of your hosting plan.
* Implement your real domains as add-on domains.
* Unpack Drupal into a directory. If your host allows you to point at directories outside of your ~/public_html heirarchy, you will be better off putting it in your home directory or in a subdirectory of your home directory. So you will either have ~/drupal-6.16/ , ~/drupalInstalls/drupal-6.16/ , or ~/public_html/drupal-6.16/ .
* When you create an add-on or sub directory, it will point at a directory in ~/public_html . Replace this directory with a symbolic link to the Drupal directory.

Now you can reconfigure domains at will. Upgrading is easier, since you can have two installations running in parallel, and go through the upgrade process for each at your own pace (change the symlink & then run update). I even put the sites directory outside of the Drupal folder & create a symlink to it, so I don't have to copy the directory (files directory too).

Of course, this does not help you today, but if you decide you wish to reinstall, you might want to set up something like this. Hope this helps somebody.

ognyang’s picture

thanks for the recipe but I have to fix that first :)

ognyang’s picture

OK i reenable the subdomain to fix this.. i still don`t know how
the most interesting thing is that when i enter the new sitename in my browser`s url box it opens the site and
in the URL box above I`m seeing the new sitename
And when I log in to the site it automatically changed the address in the box to the old one (sub.domain.com).

I hope you understand me but I don`t know how to explain it :(

Luna’s picture

Although it will not take away the cause of your problem, maybe setting the correct values in settings.php and make it write-protected after that will help?

ognyang’s picture

The permissions are Read and Execute!
I have no idea what is happening here!?!?!

zisser’s picture

Did you find a fix???
I'm lost..