Problem accessing subdirectories

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
Post Reply
twacker
Posts: 2
Joined: Tue Jun 26, 2007 11:49 pm

Problem accessing subdirectories

Post 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 ?
winkiller
Regular
Posts: 77
Joined: Tue May 17, 2005 7:52 pm
Location: Munich, Germany
Contact:

Post 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
twacker
Posts: 2
Joined: Tue Jun 26, 2007 11:49 pm

Post 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?
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

Instead you can achieve it by following the FAQ:

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

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Post Reply