acerapa / acerapa/p-tracker

Update `.htaccess ` for static files

未關閉
#13 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
主要語言
PHP
星號
1
分支
0
PR 合併指標
30 天內沒有已合併 PR

描述

Currently the `.htaccess` will going to redirect all the routes in the `index.php` belongs to route folder which will then process the route and will go directly to the static controller and then returns an encrypted routes, which changes the name of the static file on the network tab. Given that situation, it is really hard to maintain and locate files with those random names.

貢獻指南

這個儲存庫沒有索引到貢獻指南

研究方向

Open the repository `.htaccess` and inspect the rewrite rules that send all routes to `index.php`. Then inspect `index.php` and the static route/controller path mentioned in the report to confirm how static requests are being processed. Adjust `.htaccess` so static assets are excluded from front-controller rewrite, then run the app and request a known static file to confirm it is served with its original filename in the network response.

由索引模型根據 Issue 內容生成。

評估

技術堆疊
apache, php
領域
backend
Issue 類型
缺陷
難度
1/5
預估耗時
1 小時以內
活躍度
停滯
描述清晰度
基本清楚
新手友好度
45/100

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。