Mapping Url using htaccess

Hello ,

I hope , you are doing well ,

I have a confusion that i am trying to map a url to zend controller using htaccess. but it is showing my that invalid controller name .

My htaccess code is here .

SetEnv APPLICATION_ENV developmentangular
php_value "short_open_tag" "on"
php_value "session.cache_expire" "0"

RewriteEngine On
RewriteRule ^V2AWS/webservices/(.*) webservices/$1?apiVersion=V2AWS [L,QSA]
#RewriteRule ^appbuilder/creator-software$ builder/creator-software.php
#RewriteRule ^appbuilder/creator-software/$ builder/creator-software.php
RewriteRule ^show/billing/(.*) /billing/index/appId/$1 [QSA,L] 
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
php_flag magic_quotes_gpc 0
php_flag register_argc_argv 1

Which is inside the public folder.

My url is http://localhost.billing/show/billing/ef5657b355e2 and mapping url is http://localhost.billing/billing/index/appId/ef5657b355e2. but i am getting the error that controller name in invalid . i am attaching the screenshot in the attachment section.

What i am doing wrong ,please guide me about this issue .


Hello and welcome to our forums! :smiley:

First you are using the Zend Framework with version 1 but this version is dead since 2016!

Is there a special reason why you want to do it this via htaccess?

Remove this line and define the route in your application.

But again: ZF1 is dead and has not been supported for years!

1 Like

I am trying this for my learning . i want to know that how it is possible to get this using htaccess with same version.