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
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.
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 /