http://hogehoge.com/login.php
を
http://hogehoge.com/login
のようにしてアクセスしようと思い、
httpd.confに追記しました。
<Directory "/var/www/laravel/public"> # # Possible values for the Options directive are "None", "All", # or any combination of: # Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews # # Note that "MultiViews" must be named *explicitly* --- "Options All" # doesn't give it to you. # # The Options directive is both complicated and important. Please see # http://httpd.apache.org/docs/2.4/mod/core.html#options # for more information. # Options Indexes FollowSymLinks # # AllowOverride controls what directives may be placed in .htaccess files. # It can be "All", "None", or any combination of the keywords: # Options FileInfo AuthConfig Limit #AllowOverride None AllowOverride All RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME}.php -f RewriteRule ^(.*)$ $1.php # Controls who can get stuff from this server. Require all granted </Directory>
しかしながら、「not found 」となってしまいます。
Laravel を使用しています。Apache2.4です。
よろしくお願いいたします。
回答1件
あなたの回答
tips
プレビュー