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 7432145
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T09:24:37+00:00 2026-05-29T09:24:37+00:00

Im having a problem getting zend framework to play nicely with subdomains on my

  • 0

Im having a problem getting zend framework to play nicely with subdomains on my server. I have a LAMP stack running on ubuntu 11.10, I am also using a dynamic dns service where I have my zone records defined. So basically my dns is setup like:

DNS:
Registered with one company and point my domain name to the Dynamic DNS’s nameservers here.

With the Dynamic DNS host I have 3 defined zone records of type A:

mydomain.com 000.00.0.0
www.mydomain.com 000.00.0.0
*.mydomain.com 000.00.0.0  <-- wildcard to catch all subdomains

Apache setup:

in /etc/apache2/sites-available :: /sites-enabled
I have my default setup for mydomain and another vhost for mysubdomain.mydomain.com

/var/www :
I have mydomain.com/public /var/www/public folder as its document root

/var/www/mysubdomain :
I have mysubdomain.mydomain.com using /var/www/mysubdomain/public folder as its root

I think all of this is setup correctly because I serve any request to www.mydomain.com correctly, and I also serve any request to www.mysubdomain.mydomain.com correctly.

BUT when I make a request like www.mysubdomain.mydomain.com/:controller or www.mysubdomain.mydomain.com/:controller/:action I am issued a 404 Not Found from the server with the following message:

The requested URL /controller/action was not found on this server.

Im thinking this is an issue with my .htaccess which is setup the following way in

my .htaccess:

RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule .* index.php 

The thing is that when the application that I am currently trying to access is setup and accessd as a normal domain like www.mysubdomain.com everything works.

  • 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-29T09:24:38+00:00Added an answer on May 29, 2026 at 9:24 am

    I am using the following .htaccess:

    RewriteEngine On
    RewriteCond %{REQUEST_FILENAME} -s [OR]
    RewriteCond %{REQUEST_FILENAME} -l [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^.*$ - [NC,L]
    RewriteRule ^.*$ index.php [NC,L]
    

    Maybe you could try and provide the results.

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

Sidebar

Related Questions

I'm having a problem getting Solr to talk to Microsoft SQL Server via the
I have Thinking Sphinx setup and working however I am having a problem getting
I'm having a problem getting a bitmap to rotate properly. I have a SurfaceView
Im having a problem getting jequery autocomplete to work for rerendered textfields. I have
I'm just really starting with the Zend Framework, and currently I'm having a problem
I'm having a problem getting my data model to work correctly. I have the
I am having a problem getting a result set from my Sql Server 2008
I am having problem getting my tooltip to work when using the jQuery load()
Having a problem getting a TreeView control to display node images. The code below
I am having a problem getting a list of fields from a query defined

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.