Page 1 of 1

Problem accessing subdirectories

Posted: Wed Jun 27, 2007 12:06 am
by twacker
Hello everybody,
I'm very sorry if I'm posting this in the wrong forumsection but this was not an installation error.

The thing is that I installed Serendipity in the /www root of my domain. Now when I try to access any other subdirectory of my domain I always get redirected to the root page of Serendipity (the index page of the blog). So now I can't access mydomain.com/images or something like that because I always get redirected.

Does anyone know what the problem is and how it may be fixed, or do I have to re-install it to a /www/serendipity ?

Posted: Wed Jun 27, 2007 2:51 am
by winkiller
Hello,
most probably it's the .htaccess file that redirects everything /index.php - try to add

Code: Select all

RewriteCond %{REQUEST_URI} !^/images/
RewriteCond %{REQUEST_URI} !^/somefolder/
at the end and you should be able to access them again

Posted: Wed Jun 27, 2007 5:11 pm
by twacker
winkiller wrote:Hello,
most probably it's the .htaccess file that redirects everything /index.php - try to add

Code: Select all

RewriteCond %{REQUEST_URI} !^/images/
RewriteCond %{REQUEST_URI} !^/somefolder/
at the end and you should be able to access them again
I added the code to the .htaccess file and nothing happened. It looks like this:

Code: Select all

# BEGIN s9y


DirectoryIndex /index.php
php_value session.use_trans_sid 0
php_value register_globals off

<Files *.tpl.php>
    deny from all
</Files>

<Files *.tpl>
    deny from all
</Files>

<Files *.sql>
    deny from all
</Files>

<Files *.inc.php>
    deny from all
</Files>

<Files *.db>
    deny from all
</Files>

RewriteCond %{REQUEST_URI} !^/mp3/
RewriteCond %{REQUEST_URI} !^/stuff/

# END s9y
Any thoughts?

Posted: Thu Jun 28, 2007 9:45 am
by garvinhicking
Hi!

Instead you can achieve it by following the FAQ:

http://www.s9y.org/11.html#A13

Regards,
Garvin