简体   繁体   中英

create core php file in yii framework

i want to access core php file in yii using directly access from web url

my htaccess is

   <IfModule mod_rewrite.c>
      RewriteEngine On

# Some hosts may require you to use the `RewriteBase` directive.
# If you need to use the `RewriteBase` directive, it should be the
# absolute physical path to the directory that contains this htaccess file.
#
# RewriteBase /

RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [QSA,L]
 </IfModule>

Thanks

通过添加文件名例外进行更新

RewriteCond %{REQUEST_URI} !^/yourfile\.php$ 

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM