在项目下添加.htaccess
内容如下:
deny from all
立即学习“PHP免费学习笔记(深入)”;
Options -Indexes
Options +FollowSymLinks
# For security reasons, Option followsymlinks cannot be overridden.
# Options +FollowSymLinks
# Options +SymLinksIfOwnerMatch
# IndexIgnore */*
RewriteEngine on
# if a directory or a file exists, use it directly
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
# otherwise forward it to index.php
RewriteRule ^(.*)$ /hangman/index.php [L]
以上内容中
RewriteRule 后面的 /hangman/index.php 应根据实际填写
试验了好久才成功得,有一天晚上突然有灵感,虽然灵感失败了,但是无意中打开了 另一条道路
PHP怎么学习?PHP怎么入门?PHP在哪学?PHP怎么学才快?不用担心,这里为大家提供了PHP速学教程(入门到精通),有需要的小伙伴保存下载就能学习啦!
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号