htaccess directory ? (5 posts)

  1. Melatonin
    Posted 9 years ago #


    i am using my wordpress in a custom named directory like root/blog/ but everytime i add a page or update permalink structure, wordpress is updating or creating a new .htaccess file at the root/ but not at the root/blog/. Is there a way to tell wordpress my installation and .htaccess file are at the root/blog/ directory not in the root/ so i dont have to copy the updated .htacces file everytime from site root to wordpress folder.

    P.S: by the way, i am using a subdomain like http://subdomain.domain.com which directs to http://www.domain.com/subdomain/


  2. moshu
    Posted 9 years ago #

    I think the answer is in your P.S.
    WordPress is quite "allergic" to this kind of settings. (doesn't your host let you create subdomain without redirecting?)
    BTW, and what do you have in Options > General for the 2 URIs? Are they different?

  3. Melatonin
    Posted 9 years ago #

    i can create subdomains and on my hosting control panel
    i should point subdomain url to folder at my root directory to make it work. or am i missing something here ? :)

    my url settings are like this ;

    WordPress address (URI): http://www.domain.com/blog
    Blog address (URI): http://blog.domain.com

  4. moshu
    Posted 9 years ago #

    1. My subdomains stay the same, I don't have to redirect:
    http://subdomain.example.com/whatever.php or .html
    (real life ex. http://crosscultural.transycan.net/ )

    2. I am afraid (though not 100% sure) the 2 URIs "confuse" WP as to where to write the .htaccess file.

  5. minou30
    Posted 9 years ago #

    Solution is, your .htaccess file should include the following:

    DirectoryIndex index.php index.htm index.html

Topic Closed

This topic has been closed to new replies.

About this Topic