Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7581171
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T18:08:10+00:00 2026-05-30T18:08:10+00:00

I have a site new.mysite.com in Drupal. In the vhost file I have a

  • 0

I have a site “new.mysite.com” in Drupal.
In the vhost file I have a directory “weight-loss” pointing to another location on the server for this website.
In that folder I have a mini-site based on Zend Framework which is using mod_rewrite.
The mod_rewrite is not working, and I’m thinking it’s because this folder is an alias because the exact same mini-site works in another location without being in an aliased folder.
The mini-site in in “/home/weight-loss/admin/”. The .htaccess file is “/home/weight-loss/admin/.htaccess”

http://new.mysite.com/weight-loss/admin/dashboard/index
should be :
http://new.mysite.com/weight-loss/admin/index.php?module=dashboard&controller=index

What am I doing wrong?

The vhost settings

<VirtualHost 192.168.100.142:80>
    ServerAdmin serveradmin@bbgi.com
    DocumentRoot /home/drupal_1
    ServerName new.mysite.com
    ServerAlias mysite.com www.mysite.com
    Alias /weight-loss /home/weight-loss/
    ErrorLog /var/log/httpd/mysite.com_err_log
      CustomLog /var/log/httpd/mysite.com_log special
    <Directory /home/drupal_1>
      Options FollowSymLinks Includes ExecCGI
              AllowOverride All
              DirectoryIndex index.html index.htm index.php
    </Directory>
</VirtualHost>

The .htaccess file:

RewriteEngine On
RewriteCond %{REQUEST_FILENAME} -s [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.*$ - [NC,L]
RewriteRule ^.*$ /weight-loss/admin/index.php [NC,L]
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T18:08:11+00:00Added an answer on May 30, 2026 at 6:08 pm

    Duplicate the <Directory /home/drupal_1>...</Directory> and change the /home/drupal_1 to /home/weight-loss. That should enable htaccess (and therefor also mod_rewrite)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an old site www.mysite.com/index.php and a new site www.mysite.com/cms/index.php How is the
Iam a php developer, and iam new to drupal.I have installed a drupal site.
I recently changed URLs of my site. Old URL: mysite.com/top/1 New URL: mysite.com/top/page=1 When
I have a server that already has a domain, lets say mysite.com but i
I have two folders for a particular web site. There is the main www.mysite.com
I have URL: http://www.mysite.com/ here is: $date = new DateTime(2011-11-28); this show me: 2011-11-28
I have a site located at http://www.mySite.com . My html / PHP pages and
On my site, users have public profiles that can be accessed via http://mysite.com/vanity_url .
I'm new to WordPress. I have my site (CMS) divided to several pages in
I have the following code snippet: using (SPSite site = new SPSite(this.ListAddress)) { using

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.