I'm using PHP Zend as my project framework. How I can remove public
from this URL?
I want this kind of URL
http://staging.revivalx.com/zeesbio/login
Instead of this
http://staging.revivalx.com/zeesbio/public/login
http://staging.revivalx.com/zeesbio/public/login
Thanks a lot in advance.
Try to put .htaccess file in your root directory.
RewriteEngine On
RewriteRule ^\.htaccess$ - [F]
RewriteCond %{REQUEST_URI} =''
RewriteRule ^.*$ /public/index.php [NC,L]
RewriteCond %{REQUEST_URI} !^/public/.*$
RewriteRule ^(.*)$ /public/$1
RewriteCond %{REQUEST_FILENAME} -f
RewriteRule ^.*$ - [NC,L]
RewriteRule ^public/.*$ /public/index.php [NC,L]
php_value memory_limit 64M
#add content type header
AddDefaultCharset UTF-8