✏️ 编辑:htaccess_root.txt
路径:
/home/boguraj1/public_html/udoktaecom/htaccess_root.txt
大小:487 B · 修改:2026-07-23 22:13:46 · 权限:0644 · 可写
← 返回目录
👁 查看
⬇ 下载
<IfModule mod_rewrite.c> RewriteEngine On # Block direct access to Laravel source files (security) RewriteRule ^(app|bootstrap|config|database|resources|routes|storage|vendor)(\/.*)?$ - [F,L] RewriteRule ^(\.env|artisan|composer\.(json|lock))$ - [F,L] # Route everything through Laravel's public/ folder # URL stays clean — /public never shows in browser RewriteRule ^$ public/index.php [L] RewriteRule ^((?!public/).*)$ public/$1 [L,QSA] </IfModule>
💾 保存
取消
保存为 UTF-8,换行统一为 LF