我在我的网页服务器上有一些文件夹链接到其他文件夹。
我想知道这是如何实现的?
例如:
我希望http://www.example.com/public_html/css/
指向http://www.example.com/public_html/wp-content/themes/theme-name/css/
我在我的网页服务器上有一些文件夹链接到其他文件夹。
我想知道这是如何实现的?
例如:
我希望http://www.example.com/public_html/css/
指向http://www.example.com/public_html/wp-content/themes/theme-name/css/
最简单的方法是创建一个符号链接,像这样:
cd /path/to/public_html/
ln -s /path/to/public_html/wp-content/themes/theme-name/css/ css
示例:
cd ~
ln -s wp-content/themes/theme-name/css/ css