简体   繁体   中英

How do I create a shortcut folder on a linux web server?

I have some folders on my web server that link to other folders.

I am wondering how this is done?

Example: I want http://www.example.com/public_html/css/ to point to http://www.example.com/public_html/wp-content/themes/theme-name/css/

easiest way is to create a symblink like this:

cd /path/to/public_html/
ln -s /path/to/public_html/wp-content/themes/theme-name/css/ css

example:

cd ~
ln -s wp-content/themes/theme-name/css/ css

您正在寻找的是Alias指令

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM