I followed this tutorial(Drupal 7) but it not worked for me(Drupal 8):
Multi-site in subdirectories https://www.drupal.org/docs/7/multisite-drupal/multi-site-in-subdirectories
My Drupal is on a Virtual Machine with only access via IP, not hostname.
This is my enviroment:
- CentOs 7 with SELinux(mode: enforcing)
- Varnish 4.0.3
- Apache 2.4.23
- Drupal 8.2.4
I need to create the next structure of sites:
- / <-- First site
- /site2 <-- Second site
- /site3 <-- Third site
In the file sites/sites.php i have:
- $sites['localhost.site2'] = 'site2';
When I click the "Go there now" link after entering and submitting the basic site creation credentials, I am served up the index page on the root level of the server, and not the default home page for the site I just created. In addition to this, I am not getting the email I am supposed to get after successful site creation. Since I am not a server administrator, I can only speculate that the problem might have to do with permissions not being set correctly and/or paths are not set correctly in certain files (such as .htaccess or httpd.conf).
A bit of context:Read more
This is my first ever attempt at making a multisite, and before I started, the documentation made it seem pretty easy to do (I'm using Drupal 7).
We already have a working Drupal site, but we now want to make it a multisite. I've gone through the instructions a few times and it will not work for me.
(I am trying to make a multisite on the same domain: www.example.com/site1, www.example.com/site2...)
During the initial install, we had to remove the .htaccess file to allow Drupal to work on our server. Not sure why (this was before I started this position),Read more
I have a page with a URL alias that had a spelling mistake. I want to fix it but I also don't want to lose the traffic that has been coming to the site via the misspelt alias. So I added the following line to my .htaccess file just below Drupal's rewrite rules:
redirect 301 /Hampton-Court-SA http://www.mysite.co.za/hampton_park_sa
This would have worked except for the fact that Drupal seemingly adds a query string at the end so the redirect then fails. The URL in the browser ends up being this:Read more
I host several sites on a cloud server running Cent OS and using Plesk. I have complete command line access since it is my own cloud server. For my Drupal 6 sites, I used the alias trick to do an easy multi-site setup. It works fine but it does not allow me to get individual traffic stats for the sites. So for Drupal 7 I decided I would try to do an install that would let me track individual usage. The fairly universal advice re multi-site setup on the main Drupal site is to use sym links.Read more
I had a very interesting learning experience regarding Clean URL's and a subdomain. Try as I could I just could not get Drupal 6-X to pass the clean URL test. After much Googling and very little SERP's on the subject I finally found (or was shown) what the answer could be to fix this vexing problem.Read more
I am getting a strange problem with 301 redirect it the code is working for with www in the link and not working for with out www
RewriteRule ^api$ http://example.com/topic/api [R=301,L]
I need help.
I want to redirect all my sites to the URL version without the
Please, could someone post his