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

  • SEARCH
  • Home
  • 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 430189
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T19:51:01+00:00 2026-05-12T19:51:01+00:00

I hope I will find a help here. I have a quite complex MVC

  • 0

I hope I will find a help here.
I have a quite complex MVC driven application.

Here how it works:

these are my directories

  1. / – (/dispatcher.php as mvc1 app bootstrap)
  2. /mvc2 – (/mvc2/dispatcher.php as mvc2 app bootstrap)
  3. /mvc3 – (/mvc3/dispatcher.php as mvc3 app bootstrap)

all 3 are accesible under one domain example.com then

  1. example.com/ – is 1st MVC application
  2. example.com/mvc2 – is 2nd application
  3. example.com/mvc3 is a 3rd application.

So far everything is working nicely on .htaccess files (in each mvc folder) which have following code inside:

RewriteEngine on
RewriteRule !\.(js|ico|gif|jpg|png|css|htc|swf|html|xml)$ dispatcher.php

code is correct my problem is that I would like to move it into vhost.conf file or httpd.conf which is loaded into memory at Apache startup and get rid of all .httaccess to boost up Apache performance.

the current solutions its working correctly because each .htaccess is overwritting its parent directory one, which I can’t have to working in vhost.conf

So far I have tried to move it into directive but without success. Any ideas ?

many thanks for help.

cheers

  • 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-12T19:51:01+00:00Added an answer on May 12, 2026 at 7:51 pm

    Try this rule:

    RewriteEngine on
    RewriteCond %{REQUEST_URI} !.*\.(js|ico|gif|jpg|png|css|htc|swf|html|xml)$
    RewriteRule ^(/mvc2|/mvc3)?/ $1/dispatcher.php
    

    That should redirect requests of /mvc2/… or /mvc3/… to the corresponding dispatcher.php. And only if the URL path does start with neither /mvc2/… nor /mvc3/… it’s redirected to the dispatcher.php in the root directory.

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

Sidebar

Related Questions

I hope you can help me here... I have a conflict with the decimal
I'm starting to develop a web application in PHP that I hope will become
I have now 1gb ram at work(i hope that will change soon) and jboss
I have little bit longer question for you - but hope answer will be
I'm relatively new to jquery, so I have what I hope will be a
This is my first post here and I hope that someone will be able
I hope someone here can help me! :) Actually I've run into a wall
I hope there's a SharePoint expert here on SO who can help with this.
I have looked here and in google search and I haven't find something relative
I'm really confused at the moment, and I hope you can help me find

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.