Take the 2-minute tour ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

I have a domain that looks like domain.com on the server files look like:

<www>
 <mydirectory>
 <otherstuff>
 <asubdomain>
 index.html
 .htaccess

ok, so when you open the site, it will display index.html. my question is, how can I make it so it displays mydirectory/index.php, without affecting the scripts inside that directory (it's wordpress btw) ?

share|improve this question
    
also note that the script inside that directory assumes that it's installed on domain.com (not domain.com/mydirectory) –  user2589 Oct 20 '10 at 20:13
add comment

1 Answer 1

up vote 1 down vote accepted

Create a rule in your .htaccess file to handle it. This may help out http://perishablepress.com/press/2008/10/06/redirect-subdirectory-to-root-via-htaccess/

share|improve this answer
    
You probably should elaborate on that a bit and show an example or link to one. –  John Conde Oct 20 '10 at 20:44
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.