我在填hosting的時(shí)候,遇到了不能選擇開(kāi)頭的start文件夾的問(wèn)題。打開(kāi)鏈接時(shí) юhttps://my-domen/ 這將打開(kāi)要訪問(wèn)該站點(diǎn),請(qǐng)輸入 /public 如何確保當(dāng)您打開(kāi)該站點(diǎn)時(shí),公用文件夾會(huì)立即在主機(jī)上打開(kāi),因此您無(wú)法對(duì)其進(jìn)行配置。我可以使用 htaccess 或其他東西嗎?如果這有幫助,那么 laravel 文件是一個(gè)干凈的項(xiàng)目htaccess<IfModule mod_rewrite.c> <IfModule mod_negotiation.c> Options -MultiViews -Indexes </IfModule> RewriteEngine On # Handle Authorization Header RewriteCond %{HTTP:Authorization} . RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}] # Redirect Trailing Slashes If Not A Folder... RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_URI} (.+)/$ RewriteRule ^ %1 [L,R=301] # Handle Front Controller... RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^ index.php [L]</IfModule>
如何重定向到公用文件夾
慕桂英4014372
2023-04-21 13:33:19