Forum Moderators: phranque
http://example.com/rp
Like so.
Now, in my .htaccess file I have this in it, for the main directory.
DirectoryIndex ./rp/index.php
order allow,deny
deny from 211.30.246.50
deny from 69.231.56.45
deny from 154.20.89.84
allow from all
<Files 403.shtml>
order allow,deny
allow from all
</Files>
I've tried countless variations of the DirectoryIndex, and nothing seems to work. Everytime I load my main page, for some reason, it loads the index.php, and then excludes the /rp/ directory from everything on the page and therefore my page doesn't load any images or content.
Is there any way to fix this?
Thank you.
[edited by: jdMorgan at 1:55 am (utc) on Jan. 4, 2006]
[edit reason] No URLs, please. See Terms of service. [/edit]
That is, use:
<img src="http://www.example.com/rp/my_logo.gif">
or
<img src="/rp/my_logo.gif">
and do not use
<img src="rp/my_logo.gif">
It is the browser that resolves relative links, and as far as the browser is concerned, your index page is still in your root directory.
There are other and perhaps better ways to do this, but I'm commenting on the most likely cause of the problem with the method that you are using now.
Jim