Hi,
I have installed drupal6.17 on a subdirectory ( NOT on Root) like http://firstsite.com/drupal/,
then i created a new site applying multisite method i.e http://secondsite.com which runs well.
Now my problem is the clean url that works on http://firstsite.com/drupal/ but does not work with new site http://secondsite.com
the htaccess rewrite rule is used as original from drupal
# Rewrite URLs of the form 'x' to the form 'index.php?q=x'.
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !=/favicon.ico
RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
when i use with a slash like below, then it works with secondsite, but fails on firstsite.
RewriteRule ^(.*)$ /index.php?q=$1 [L,QSA]
Also i tried with
RewriteRule ^(.*)/$ index.php?q=$1 [L,QSA]
which not working on 2nd site but works for firstsite.
Any suggestion will be grate help!
Comments
I meet the same problem like
I meet the same problem like you.
I installed my first site (www.yaosz.com) and the clean url works but another site (www.firefoxformac.com) doesn't work,though they are in the same web hosting.
Then I tried www.yaosz.com/firefoxformac.com ,the clean url works,www.yaosz.com/firefoxformac.com/user/1 is accessible but www.firefoxformac.com/user/1 is "500 Internal Server Error"
edited by silverwing - removed dofollow tagsNote:
Please don't add dofollow or follow to your links. Doing so will result in your account being blocked.
~silverwing - drupal.org site maintainer
I do as you said,change
I do as you said,change this
RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
to
RewriteRule ^(.*)$ /index.php?q=$1 [L,QSA]
and it works.
Clean url works on the both sites.
Thanks a lot.
Sorry, No luck!
I did try with this before and still tested again after your suggestion but it works on second site and breaks the first site.
Thank you
Solved Problem using 2nd access rules codeblock
i had same problem with two Drupal installations, "example.org" configured as default drupal installation and 2nd configured as path subsite "example.org/intranet".
When using two seperate rewrite rule blocks in .htaccess for both site-installations, this problem could be solved and Clean-URLS worked fine for both sites:
...wish you success!