{"id":1041,"date":"2024-04-16T19:57:53","date_gmt":"2024-04-16T10:57:53","guid":{"rendered":"http:\/\/inwelly.com\/?p=1041"},"modified":"2024-04-16T19:57:53","modified_gmt":"2024-04-16T10:57:53","slug":"php-laravel-%ed%8c%8c%ec%9d%bc-%ec%9e%91%ec%84%b1-htaccess","status":"publish","type":"post","link":"https:\/\/inwelly.com\/?p=1041","title":{"rendered":"PHP Laravel \ud30c\uc77c \uc791\uc131 .htaccess"},"content":{"rendered":"\n<pre class=\"wp-block-code\"><code>.\/public\/ \ud3f4\ub354\uc5d0  .htaccess \uc744 \ub9cc\ub4e4\uace0 chown \ud638\uc2a4\ud2b8\uacc4\uc815ID:www-data  \ud574\uc900\ub2e4<\/code><\/pre>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>&lt;IfModule mod_rewrite.c&gt;<\/p>\n\n\n\n<p>&nbsp; &nbsp; &lt;IfModule mod_negotiation.c&gt;<\/p>\n\n\n\n<p>&nbsp; &nbsp; &nbsp; &nbsp; Options -MultiViews -Indexes<\/p>\n\n\n\n<p>&nbsp; &nbsp; &lt;\/IfModule&gt;<\/p>\n\n\n\n<p>&nbsp; &nbsp; RewriteEngine On<\/p>\n\n\n\n<p>&nbsp; &nbsp; # Handle Authorization Header<\/p>\n\n\n\n<p>&nbsp; &nbsp; RewriteCond %{HTTP:Authorization} .<\/p>\n\n\n\n<p>&nbsp; &nbsp; RewriteRule .* &#8211; [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]<\/p>\n\n\n\n<p>&nbsp; &nbsp; # Redirect Trailing Slashes If Not A Folder&#8230;<\/p>\n\n\n\n<p>&nbsp; &nbsp; RewriteCond %{REQUEST_FILENAME} !-d<\/p>\n\n\n\n<p>&nbsp; &nbsp; RewriteCond %{REQUEST_URI} (.+)\/$<\/p>\n\n\n\n<p>&nbsp; &nbsp; RewriteRule ^ %1 [L,R=301]<\/p>\n\n\n\n<p>&nbsp; &nbsp; # Handle Front Controller&#8230;<\/p>\n\n\n\n<p>&nbsp; &nbsp; RewriteCond %{REQUEST_FILENAME} !-d<\/p>\n\n\n\n<p>&nbsp; &nbsp; RewriteCond %{REQUEST_FILENAME} !-f<\/p>\n\n\n\n<p>&nbsp; &nbsp; RewriteRule ^ index.php [L]<\/p>\n\n\n\n<p>&lt;\/IfModule&gt;<\/p>\n<\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>&lt;IfModule mod_rewrite.c&gt; &nbsp; &nbsp; &lt;IfModule mod_negotiation.c&gt; &nbsp; &nbsp; &nbsp; &nbsp; Options -MultiViews -Indexes &nbsp; &nbsp; &lt;\/IfModule&gt; &nbsp; &nbsp; RewriteEngine On [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[112],"tags":[],"class_list":["post-1041","post","type-post","status-publish","format-standard","hentry","category-laravel"],"_links":{"self":[{"href":"https:\/\/inwelly.com\/index.php?rest_route=\/wp\/v2\/posts\/1041","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/inwelly.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/inwelly.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/inwelly.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/inwelly.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1041"}],"version-history":[{"count":1,"href":"https:\/\/inwelly.com\/index.php?rest_route=\/wp\/v2\/posts\/1041\/revisions"}],"predecessor-version":[{"id":1042,"href":"https:\/\/inwelly.com\/index.php?rest_route=\/wp\/v2\/posts\/1041\/revisions\/1042"}],"wp:attachment":[{"href":"https:\/\/inwelly.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1041"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/inwelly.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1041"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/inwelly.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1041"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}