How to host the zend framework app on wordpress website

I recently created an application (sales portal) in PHP for a small company. The company had a website developed in the press. Since I did not work with the word press, as I embedded my application on a website, I simply created a subdirectory on the host and loaded my application there. For instance:

domainname.com - their website

domainname.com/portal is the location of my application (index.php file).

Starting from a month, I’m studying Zend Framework 1.8, and I want to rewrite the portal in the Zend platform, since I wrote the portal from scratch and its kernel is not as safe as it would be if it implements the Zend environment.

My question is: can I enable the Zend framework application on the Wordpress website as I did using the application from scratch, creating a subdirectory on the host and downloading the application there? And if so, how can I configure the Zend application so that it recognizes the name domainname.com/portal as the domain name (as the home directory).

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

website: domainname.com/portal controller: sale action: index

"domainname.com/portal/index.php/sales", - "domainname.com/portal/", (, domainname.com/portal/sales ) 404.

( : - http://www.domainname.com )

.

+5
2

, wordpress ues.htaccess URL- index.php.

.htaccess, :

<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>

.htaccess, , http://domainname.com/portal.

.htaccess :

<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>

, , "" .

. wordpress .htaccess, .

+3

[C] a Zend - Wordpress , " ", ?

, .

[H] ow Zend , domainname.com/portal ( ) [?]

, URL & shy; Docs, / Zend Framework.

+1

All Articles