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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T04:17:13+00:00 2026-05-28T04:17:13+00:00

I am using zend Framework Version 1.11.11 and I work on a Mac (OSX

  • 0

I am using zend Framework Version 1.11.11 and I work on a Mac (OSX 10.6.8) with MAMP PRO.

I was working on a project with it before going on holiday and when I got back, whenever I tried to access the index page or a page of the website on my local version I got redirected to the MAMP Pro index page.
It never happened before. Now I know that other posts had tackled this issue before, but I checked my settings against theirs and they are the same.

.htaccess

SetEnv APPLICATION_ENV development

RewriteEngine On
RewriteBase /

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


php_value upload_max_filesize 150M
php_value post_max_size 150M
php_value memory_limit 150M

index.php

<?php

// Define path to application directory
defined('APPLICATION_PATH')
    || define('APPLICATION_PATH', realpath(dirname(__FILE__) . '/../application'));
    defined('UPLOAD_PATH')
    || define('UPLOAD_PATH', realpath(dirname(__FILE__) . '/../public'));
     defined('TRAILING_CHARS')
    || define('TRAILING_CHARS', "SHARINGAN");

// Define application environment
defined('APPLICATION_ENV')
    || define('APPLICATION_ENV', (getenv('APPLICATION_ENV') ? getenv('APPLICATION_ENV') : 'production'));

// Ensure library/ is on include_path
set_include_path(implode(PATH_SEPARATOR, array(
    realpath(APPLICATION_PATH . '/../library'),
    get_include_path(),
)));

/** Zend_Application */
require_once 'Zend/Application.php';


// Create application, bootstrap, and run
$application = new Zend_Application(
    APPLICATION_ENV,
    APPLICATION_PATH . '/configs/application.ini'
);

$application->bootstrap()
            ->run();

bootstrap.php

<?php

class Bootstrap extends Zend_Application_Bootstrap_Bootstrap
{
    protected function _initActionHelpers() 
    {
        Zend_Controller_Action_HelperBroker::addPath(APPLICATION_PATH . '/controllers/helpers', 'Action_Helper');
        // Zend_Controller_Action_HelperBroker::addHelper(
     //     new Action_Helper_Common(null, $session)
        // );
        Zend_Controller_Action_HelperBroker::getHelper('Common');

    }

    protected function _initAutoloader() {
        $moduleLoader = new Zend_Application_Module_Autoloader(array(
            'namespace' => 'Action_Helper_*', 
            'basePath'  => APPLICATION_PATH . '/controllers/helpers'));
        return $moduleLoader;
    }


}

Can someone help please ?

EDIT

here is the architecture of my work folder:

/Work
   index.php (MAMP PRO)
   /Project
      /_build
         /application
           /controllers
              IndexController.php
         /views
         /scripts
             /error
                error.phtml
               .
               .
               .
             /index
               cms.phtml
               index.phtml
               add.phtml
               edit.phtml
               view.phtml
               .
               .
               .
         bootstrap.php
         /library
         /public
            /css
            /images
            /javascript
            .htaccess
            index.php(Zend index)
  • 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-28T04:17:13+00:00Added an answer on May 28, 2026 at 4:17 am

    Hi I just got around the issue.
    In my htaccess there was no need of a Rewrite Base, I think that is what redirected to MAMP Pro index page.
    I also deleted the explicit mention of the BaseUrl in my application.ini but I don’t think it was necessary.
    Hope it helps someone…

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

Sidebar

Related Questions

I am working on a Facebook game which is developed using Zend framework. Right
I am working on a Facebook game which is developed using Zend framework. Right
Duplicate of this question I'm trying to work with Zend_Soap using zend framework 1.9.6
I'm using Zend_Validate to validate some form input (Zend Framework version is 1.8.2). For
I've got my flex, php & zend project working fine on localhost but when
We are using Zend Framework 1.7 on a project (old, I know) and just
Hi: I am using the latest version of Zend Framework (1.9.3PL1). I set the
I am using Zend Framework 2.0 for my application. It's a beta version now.
I'm using Zend Framework version 1.7.8. I am trying to create a class that
I'm using Doctrine 1.2 as my ORM for a Zend Framework Project. I have

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.