Ready to get started?Download WordPress


Path to own directory (2 posts)

  1. gulliver
    Posted 2 years ago #

    I frequently use Wp in non-root directories, and sometimes get confused in setting the path in the index.php file - changing from ./ to ../../.

    Is there an easy way to reference the root - similar to the leading / used in html?

  2. michael.mariart
    Posted 2 years ago #

    Not really. The "simple" way is to use a full URL like http://www.domain.com/folder/name/ because there's no way that this can be ambiguous.

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.