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/

Book Of Zeus
  • 49,509
  • 18
  • 174
  • 171
Jay West
  • 177
  • 10

2 Answers2

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
Book Of Zeus
  • 49,509
  • 18
  • 174
  • 171
  • 3
    +1 nice answer, no need to create logic to do this in a .htaccess or config file - which also is faster to execute – Gabriel Dec 14 '11 at 00:55
  • 2
    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 +1 – Pat R Ellery Dec 14 '11 at 03:29
1

What you're looking for is the Alias directive

Miquel
  • 15,405
  • 8
  • 54
  • 87