Webmasters Stack Exchange is a question and answer site for pro webmasters. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
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

Your Answer

 
discard

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