Search code examples
linuxcloud-hosting

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/


Solution

  • 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