Redirect loop creating a Drupal 7 multisite - drupal-7

I know there are a few questions related to this one, yet I haven't been able to answer mine.
I want to develop 2 websites pointing to the same Drupal files.
so :
drupal1.example.com should point /www/dev/sites/drupal1.example.com
drupal2.example.com should point to /www/dev/sites/drupal2.example.com
I've created both subdomains to point to /www/dev/ folder, so I guess Drupal should "check" from where the traffic orinigates and use the proper sites folder.
I've put settings.php in drupal1.example.com et default.settings.php (with no DB info) in drupal2.example.com but it seems both subdomains use drupal1.example.com sites folder (drupal2 shouldn't be working, it should point me to the install.php folder).
Do you know what I'm doing wrong ?
Thanks!

Related

CakePHP URL redirect

I have a similar question to the one listed here:
Redirect subdomain to CakePHP action
The difference (I think) is that I have a website hosted on cloud Ubuntu servers and written in CakePHP. What I need to do is redirect:
subdomain.mysite.com --> www.mysite.com/subdomain
I am (no doubt evident from the question) a newbie at these matters, so if changing .htaccess or using mod_proxy etc then please can you explain where to find the files and what code to add (I can navigate around ubuntu, and I have previously used mod_proxy)
Many thanks

What files make one Wordpress site different from another

Migrating wordpress sites between hosts can take a lot of time, especially when the hosting platforms are different.
I have been trying to migrate my sites from Cpanel to Mediatemple, but it seems like im just not getting it right.
There is various options
Use the guide they provide
https://kb.mediatemple.net/questions/1556/Migrating+your+websites+to+the+Grid#gs
When moving the files in this way the permissions of the files are not set properly and I would have to got back through them and figure out which ones need to change.
The database export from PHPMyAdmin also does not look the same it looks in the screenshot
Using InfiniteWP
To use InfiniteWP you must provide the url of the site and since I dont want to change the DNS until the site is moved this option does not seems to be ideal.
This option might work if its ok for the sites to be unavailable for a day or so while the DNS resolves...
But I don't want the sites to be unavailable
Using Mediatemples "one click apps" to install wordpress and then moving only the files that are unique to the site from the old host to the new host.
I would like to use this option
I think that the content of the WP-Content folder needs to be moved that the database needs to be moved.
My question is
- what folders and files in a standard wordpress install typically hardly ever changes from one site to the other.
- can I use the wordpress database export and import function to move the database from one site to the other.
Any help will be appreciated
Thank you
With InfiniteWP, you can use the clone an existing site command (which can be found in "Tool"->"Install / Clone WP") to migrate a site to a new server.
You have to use a temporary (sub)domain pointing to the new server.
To answer your questions :
/wp-content/ stores all your files and sometimes plugin files, wp-config.php is where your configuration is stored (e.g. credentials to access the database). Depending on your servers, the .htaccess files may be different.
I would recommend to create a dump file of your entire database using phpMyAdmin.

Changing the host of my CakePHP site

I bought an application made in ​​Cakephp, everything was fine before, but once I wanted to host it on another server (with keeping the same database and folders), I find the links to the CSS, JavaScript and images do not work.
Please I have no knowledge in CakePHP.
Did you clean up the database?
I had to change some entries by hand once, because the servername/ip/url didn't change.
go to your db management system and search for your old IP/Path/domainname etc....
Did you copy over the (often hidden) .htaccess files when you moved to the new host?
There are three .htaccess files, one in the root of your site, on in the /app directory, and one in /app/webroot
Is mod_rewrite enabled on your new server?

Two equal Joomla sites in different domains, behave differently

I have a site and since a few days, it has a problem. My site is prosklitiria-mostracarta.gr
I make another "TEST" site. ellinixx.gr
When i already finish the ellinixx.gr site and WORKS PERFECT, i copy the ellinixx.gr site and the database to old site : prosklitiria-mostracarta.gr
Now the two sites must be the same, but i have problem.
try to see
http://ellinixx.gr/index.php?option=com_content&view=article&id=106&Itemid=116
and try to see
http://prosklitiria-mostracarta.gr/index.php?option=com_content&view=article&id=106&Itemid=116
The first site has 160+ photos, but the prosklitiria-mostracarta.gr site has LESS than 80 photos...
But the sites is Sames... Copy... And database too...
All are the sames...
why cannot display all the images ?
In localhost (local) the site works perfect.
If i put it on other domain, it works perfect.
But in domain prosklitiria-mostracarta.gr the site does NOT display all the images :(
Can someone help me...?
Jackjoe has the answer - install Akeeba Backup and move the site again using that component. I move sites from our development server to live all the time and I've never had one fail when using Akeeba Backup.
How did you move the site? Something is obviously different or the site would be the same. The images are there, but SIG Pro isn't adding them to the article.
I have used this tutorial a couple of times: link to howtojoomla.net

Deploying CakePHP on sub domain redirects to wrong location

I am trying to deploy my locahost CakePHP website to a subdomain. I am able to view the website but it is not working correctly when I try to login or register.
It does not show me any validation error nor does it allow me to login or register and it is landing on the below URL:
subdomain.example.com/webroot/index.php?url=users/login
where it should be something like:
subdomain.example.com/users/login
I am using Go Daddy shared hosting.
The older settings defined at http://bakery.cakephp.org/articles/cguyer/2009/10/18/mod-rewrite-on-godaddy-shared-hosting has solved the issue.
Thank you every one for your help.
This sounds (and looks) like an Apache rewrite issue. There are a couple of things you need to look at:
Check to make sure the .htaccess files are were they are expected. You should have one in the app directory and another in the webroot directory. Sometimes when we compress and/or transfer files to the webserver, the .htaccess files get left behind.
Make sure that the server you are running the site on has rewrite turned on. This may require that you call support at Go Daddy. But my experience is they are always willing to help.
Good luck!

Resources