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
_
Make sure you've cleared all the cached content; that's frequently the cause of problems like this.
i tried to cleare the cache
i tried to clear the cache but i received the following message
:/
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
anyone? :(
anyone? :(
am I asking stupid questions
am I asking stupid questions or just nobody can help me!??
Clean URL's ?
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?
OK i just did it but it is
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.
My recipe...
... 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.
thanks for the recipe but I
thanks for the recipe but I have to fix that first :)
OK i reenable the subdomain
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 :(
Write-protect settings.php
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?
The permissions are Read and
The permissions are Read and Execute!
I have no idea what is happening here!?!?!
Same issue
Did you find a fix???
I'm lost..