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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T03:21:52+00:00 2026-05-31T03:21:52+00:00

Recently I created an application (sales portal) in PHP for a small company. The

  • 0

Recently I created an application (sales portal) in PHP for a small company. The company had a website developed in word press. Since I hadn’t worked with word press the way I embedded my application in the website is I simply created a sub directory on the host and uploaded my application there. E.g:

domainname.com – their website

domainname.com/portal – is where my application is placed (the ‘index.php’ file).

Since a month I am learning Zend Framework 1.8 and I want to rewrite the portal in Zend framework since I wrote the portal from scratch and its core is not as secure as it would be if it implements the Zend framework.

My question is can I include the Zend framework application into the wordpress website the way I did it with ‘from-scratch’ application, by creating a sub directory on the host and upload the application there? And if yes how should I configure the Zend application so that it recognizes ‘domainname.com/portal’ as the domain name (as home directory).

The problem that I face right now is that when I type http://www.domainname.com/portal/sales it returns 404 because there is not such directory on the server. Of course what I mean with the above mentioned link (domainname.com/portal/sales) is:

site: domainname.com/portal
controller: sales
action: index

I tried ‘domainname.com/portal/index.php/sales’ but when someone opens the portal with this link ‘domainname.com/portal/’ the next linked that is clicked (e.g. domainname.com/portal/sales) shows 404.

(note: the website http://www.domainname.com should be accessible also)

Thanks in advance.

  • 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-31T03:21:53+00:00Added an answer on May 31, 2026 at 3:21 am

    I believe that wordpress ues a .htaccess to redirect all URLs to its index.php.

    This is the .htaccess I pulled out of a test installation:

    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /wordpress/index.php [L]
    </IfModule>
    

    In your case, you would need to modify the .htaccess file so that it does not care about what’s in http://domainname.com/portal.

    In your case, your .htaccess file could look at this:

    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_URI} "/portal/"
    RewriteRule (.*) $1 [L]
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /wordpress/index.php [L]
    </IfModule>
    

    Basically, what this does is that it ignores the subfolder ‘portal’ and doesn’t process it with any of the normal rules.

    However, there might be a down side: If future versions of wordpress updates the .htaccess file, then you will need to make those changes to the file again.

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

Sidebar

Related Questions

I have recently created a small VB application for a friend of mine, I
I learned Symfony2 recently and I have created a small application with it. It
I recently created a ajax based instant messaging application and after running for a
I recently created a little Perl application that utilizes a few non-core modules that
Assuming that I created a cloud-based website application that people literally all over the
I am new in creating application in Visual Studio 2010. I recently created an
Recently I created and application under eclipse and it worked just fine later on
I have recently created a version control page from my application to manage the
I recently created a Java frontend for a PHP web-service which uses PHPs SoapServer.
i recently created a sample application, wherein i implemented the events and delegates, when

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.