[英]PHP Zend - Hide public in URL
我正在使用PHP Zend作為我的項目框架。 如何從此URL刪除public
?
我想要這種網址
http://staging.revivalx.com/zeesbio/login
代替這個
http://staging.revivalx.com/zeesbio/public/login
http://staging.revivalx.com/zeesbio/public/login
非常感謝。
嘗試將.htaccess文件放在您的根目錄中。
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
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.