1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

MAMPでのhttpd.confの初期値?

Posted at

MAMPをインストールして、バージョンにより(PHPのバージョン)httpd.confの初期値が異なるので注意が必要の様です。
今回.htaccessに下記記述を有効にするには?

RewriteEngine On

# Handle Front Controller...
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [L]

httpd.confにおいて下記の様に修正が必要。

#LoadModule rewrite_module modules/mod_rewrite.so
       ↓
LoadModule rewrite_module modules/mod_rewrite.so

MAMM6のphp7.4ではLoadModuleはほとんど許可されていましたが、php8.2では逆に殆どコメントアウト#が設定されていました。
以上自分覚え書き。

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?