我的網絡服務器上有一些鏈接到其他文件夾的文件夾。如何在Linux網絡服務器上創建快捷方式文件夾?
我想知道這是怎麼完成的?
例子: 我想http://www.example.com/public_html/css/
指向http://www.example.com/public_html/wp-content/themes/theme-name/css/
我的網絡服務器上有一些鏈接到其他文件夾的文件夾。如何在Linux網絡服務器上創建快捷方式文件夾?
我想知道這是怎麼完成的?
例子: 我想http://www.example.com/public_html/css/
指向http://www.example.com/public_html/wp-content/themes/theme-name/css/
最簡單的方法是創建一個這樣的symblink:
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
+1好的答案,不需要在.htaccess或配置文件中創建邏輯來執行此操作 - 執行速度也更快 – Gabriel 2011-12-14 00:55:31
什麼你要找的是Alias directive
你的public_html是在public_html? – 2011-12-14 00:36:14