I have a drupal installation under the root called /sandbox2. I am not too familiar with configuring the .htaccess, but scriolling down thought I could resolve it by uncommenting "RewriteBase /" to "RewriteBase /sandbox2". It's still dropping down to the base landing page. I can access it at www.mysite.com/sandbox2/index.php, but www.mysite.com/sandbox2 redirects to www.mysite.com.

Comments

darol100’s picture

Overwriting .htaccess sometimes is not good because whenever you update your Drupal core all your modification/hacking can be remove it. You should be able to contact your Web server provider and ask them how to point a site into a specific directory. If you having multiple Drupal sites in one server you should consider using Multisite configuration.

- Darryl Norris
Be Connected: Website | Twitter | LinkendIn | GitHub

darol100’s picture

I was talking with one my co-workers about this issue that you have and suggest that you make a configuration in the Server Level. For example, if you are running Apache make the configuration on Apache instead of the .htaccess on Drupal. I hope this make sense too you .

If you need more information please let me know and I will provide you more resources.

- Darryl Norris
Be Connected: Website | Twitter | LinkendIn | GitHub

tripped’s picture

Understand the overwriting is an issue, but would rather have that than dealing with my host. If you are saying simply making adjustments in the directory .htaccess is buggy, that's fine and I may look at multi-site. The situation is that the home directory is an older hand made site, then I have an ubercart site in a subdirectory and a test drupal site in another subdirectory.

jaypan’s picture

Just make sure you create a backup of your .htaccess file. I create a copy named .htaccess.bak every time there is a change. That way if you overwrite your old one with your new one, you will always have a backup to work with. And since Drupal will never have an .htaccess.bak file, you don't have to worry about it being overwritten.

Contact me to contract me for D7 -> D10/11 migrations.