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

2

12

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/

Lorenlorena answered 14/12, 2011 at 0:32 Comment(1)
your public_html is in a public_html?Yearlong
Y
12

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
Yearlong answered 14/12, 2011 at 0:37 Comment(2)
+1 nice answer, no need to create logic to do this in a .htaccess or config file - which also is faster to executeAggrieve
With all the .htaccess and mod_rewrite, we stop thinking about the simplest solution, and in this case, the best! nicely done! you got my +1Waterless
L
1

What you're looking for is the Alias directive

Lashelllasher answered 14/12, 2011 at 0:36 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.