Melatonin
Member
Posted 4 years ago #
hi,
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/
thanks_
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?
Melatonin
Member
Posted 4 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
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.
minou30
Member
Posted 4 years ago #
Solution is, your .htaccess file should include the following:
DirectoryIndex index.php index.htm index.html