Viewing 1 replies (of 1 total)
  • Thread Starter Edward Ruchevits

    (@ruchevits)

    The problem is when you create a virtual directory in IIS, it only maps URL to that folder, but doesn’t create a symlink for the actual folder path.

    For those who also want to keep their theme separately from other files in WP_CONTENT_DIR, possible solution is to create a symlink instead of a virtual directory.

    On Windows you can do it by executing the following from cmd with sufficient rights:
    mklink /D <full path to theme directory under the WP_CONTENT_DIR> <full path to myTheme directory>

    For example if you have theme in “C:\myTheme” and website in “C:\website”, the command would be:
    mklink /D "C:\website\wp-content\themes\myTheme" "C:\myTheme

    Hope that will help someone.

Viewing 1 replies (of 1 total)
  • The topic ‘Theme not recognized when using virtual directory (IIS)’ is closed to new replies.