URL 和文件夹路径不同
URL and folder path different
我有一个用 PHP 和 运行 WAMP 服务器编写的网站。
我想知道是否可以使用不同于原始路径的 URL 访问文件??
实际上我在 X:/wamp/www/test/test2/index.php
中有一个文件,我使用 localhost/test/test/index.php
访问它。但是我可以创建一个别名或其他东西来使用 localhost/index.php
吗?
一种方法是通过 Apache 的优秀 ModRewrite
。
我有一个用 PHP 和 运行 WAMP 服务器编写的网站。
我想知道是否可以使用不同于原始路径的 URL 访问文件??
实际上我在 X:/wamp/www/test/test2/index.php
中有一个文件,我使用 localhost/test/test/index.php
访问它。但是我可以创建一个别名或其他东西来使用 localhost/index.php
吗?
一种方法是通过 Apache 的优秀 ModRewrite
。