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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T06:16:16+00:00 2026-05-27T06:16:16+00:00

I’m banging over the wall with this… I need to establish a zend framework

  • 0

I’m banging over the wall with this…

I need to establish a zend framework application inside a subdirectory.

i.e. the domain is tricell.ss and I want to use tricell.ss/tricell as application main directory.

Whate’ve done:

  1. I’ve setted up in my config (application.ini) the:

    resources.frontController.baseUrl = "/tricell"
    
  2. I’ve made another var in my config

    baseUrl  = "/tricell"
    
  3. In my Boostrap I’ve got this:

    $router     = new Zend_Controller_Router_Rewrite();
    $frontController->setRouter($router);
    $frontController->setBaseUrl($this->config->baseUrl);        
    
    $frontController->dispatch();
    
  4. In my layout I’m trying to display image with using:

    $this->baseUrl('/img/btn.png')
    
  5. Here are my vhost configuration:

    <VirtualHost *:80>
    DocumentRoot "/HTDOCS/tricell/tricell/public_html"
    ServerName tricell.ss
    RewriteRule ^$ [L] 
    
    RewriteEngine On
    RewriteCond %{HTTP_HOST} ^(www.)?tricell.ss$
    RewriteRule ^(/)?$ tricell [L]
    </VirtualHost>
    
  6. here is my .htaccess:

SetEnv APPLICATION_ENV development

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

The problem is when I’m trying to display image nothing happens. When I’m trying to get the image by URL:

http://tricell.ss//tricell/img/btn.png

I’m getting info about wrong controller. How I can make this right? I can (without any problems) make configuration for root domain like tricell.ss and then get image i.e. tricell/ss/img/btn.png, but I want to work on subdirectory, and I can’t do that with images. What I am doing wrong here?

  • 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-27T06:16:17+00:00Added an answer on May 27, 2026 at 6:16 am

    I’ve just manage to resolve my issue… it’s quite simple but I was very confused by all this rewriting rules.

    As saying always tricell is confusing let’s make some changes to that as well.
    So to achive something like tricell.ss/sub I would need to:

    1. Put my whole application inside /HTDOCS/tricell/tricell/sub
    2. Change my vhost from this line: DocumentRoot “/HTDOCS/tricell/tricell/public_html” to: DocumentRoot “/HTDOCS/tricell/tricell/”
    3. Insert yet another .htaccess in my /HTDOCS/tricell/tricell/sub directory:

      RewriteEngine On

    RewriteRule ^.htaccess$ – [F]

    RewriteCond %{REQUEST_URI} =””
    RewriteRule ^.*$ /sub/ublic_html/index.php [NC,L]

    RewriteCond %{REQUEST_URI} !^/sub/public_html/.$
    RewriteRule ^(.
    )$ /sub/public_html/$1

    RewriteCond %{REQUEST_FILENAME} -f
    RewriteRule ^.*$ – [NC,L]

    RewriteRule ^public_html/.*$ /sub/public_html/index.php [NC,L]

    This resolved my all issues.

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

Sidebar

Related Questions

I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
link Im having trouble converting the html entites into html characters, (&# 8217;) i
For some reason, after submitting a string like this Jack’s Spindle from a text
this is what i have right now Drawing an RSS feed into the php,
I have this code to decode numeric html entities to the UTF8 equivalent character.
In my XML file chapters tag has more chapter tag.i need to display chapters
I have this code: - (void)parser:(NSXMLParser *)parser foundCDATA:(NSData *)CDATABlock { NSString *someString = [[NSString
I need to clean up various Word 'smart' characters in user input, including but
Does anyone know how can I replace this 2 symbol below from the string

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.