Subdirectory multisite to access the url is not normal

Events happening in the community are now at Drupal community events on www.drupal.org.
msn5158's picture

I have a subdirectory multisite.

Subdirectory multisite to access the url is not normal

I can't access subdirectories multisite url path in addition to the frontpage

I can access the frontpage of subdirectory multisite, For example, http://sub.example.com/subsite

But i can't access other url path of subdirectory multisite, For example, http://sub.example.com/subsite/user/login | /subsite/admin/content

When I click login on subdirectory multisite frontpage (http://sub.example.com/subsite) , it shows the page cannot be accessed, it is considered to be the primary site page.

When I click Content of the toolbar and current page url is (http://sub.example.com/subsite/user/login) , But it will jump to the primary site /admin/content, the url is (http://sub.example.com/admin/content) and not is (http://sub.example.com/subsite/admin/content)

How do I configure file, making it normal access multisite.(http://sub.example.com/subsite/*)

My English is not very good, sorry.

Comments

.htaccess

billp44ruby's picture

I believe this is a Drupal configuration issue that needs to be resolved within the .htaccess file within your Drupal core code.

Within that file, there is a "RewriteBase" line. I think by default, Drupal has that line enabled. I know in my Drupal instance, I needed to comment those lines out to have my subdirectory implementations work correctly. Hope that helps!

# Modify the RewriteBase if you are using Drupal in a subdirectory or in a
# VirtualDocumentRoot and the rewrite rules are not working properly.
# For example if your site is at http://example.com/drupal uncomment and
# modify the following line:
# RewriteBase /
#
# If your site is running in a VirtualDocumentRoot at http://example.com/,
# uncomment the following line:
# RewriteBase /

I have already Modified it, but still doesn't work.

msn5158's picture

I have already Modified it, but still doesn't work. (the file located in the site root directory: /.htaccess)

# Modify the RewriteBase if you are using Drupal in a subdirectory or in a
# VirtualDocumentRoot and the rewrite rules are not working properly.
# For example if your site is at http://example.com/drupal uncomment and
# modify the following line:
RewriteBase /subsite
#
# If your site is running in a VirtualDocumentRoot at http://example.com/,
# uncomment the following line:
RewriteBase /

Multisite

Group organizers

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds:

Hot content this week