How To Make s9y ignore Real Folders?

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
ameo
Regular
Posts: 143
Joined: Fri Sep 26, 2008 4:13 am

How To Make s9y ignore Real Folders?

Post by ameo »

i tried installing feed reader and webmail script and when i go to their folders s9y takes over and redirect to the main!?

how can this be fixed
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: How To Make s9y ignore Real Folders?

Post by garvinhicking »

Hi!

See 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/
ameo
Regular
Posts: 143
Joined: Fri Sep 26, 2008 4:13 am

Re: How To Make s9y ignore Real Folders?

Post by ameo »

garvinhicking wrote:Hi!

See FAQ:

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

Regards,
Garvin

Code: Select all

rewriteengine Off
i've made a .htaccess file with the content above and still not working!
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: How To Make s9y ignore Real Folders?

Post by garvinhicking »

Hi!

You posted in the other mod_rewrite thread as well. Your server definitely seems to have trouble with mod_rewrite, please check your server configuration....

And make sure that the applications you put in your s9y subdirectory do NOT use mod_rewrite. If they need mod_rewrite, you cannot put them in a subdirectory of s9y, you must put it into a parallel directory structure, unrelated to s9y. The rewriterules of s9y and rewrite rules in a subdirectory will intersect, so this cannot work in most cases.

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/
ameo
Regular
Posts: 143
Joined: Fri Sep 26, 2008 4:13 am

Re: How To Make s9y ignore Real Folders?

Post by ameo »

garvinhicking wrote:Hi!

You posted in the other mod_rewrite thread as well. Your server definitely seems to have trouble with mod_rewrite, please check your server configuration....

And make sure that the applications you put in your s9y subdirectory do NOT use mod_rewrite. If they need mod_rewrite, you cannot put them in a subdirectory of s9y, you must put it into a parallel directory structure, unrelated to s9y. The rewriterules of s9y and rewrite rules in a subdirectory will intersect, so this cannot work in most cases.

Regards,
Garvin
i don't really know whether that feed reader need mod rewrite or not? i'm gonna check with it's dev.

as for s9y i have it on my root so if i wanted to install any other application beside it where should i put that new script?
judebert
Regular
Posts: 2478
Joined: Sat Oct 15, 2005 6:57 am
Location: Orlando, FL
Contact:

Post by judebert »

Good question. You may need to move s9y to a subdirectory.

I've got another idea, but I'm not sure it would work.

I'd make a directory "apps" in my root, and put the .htaccess with "RewriteEngine Off" in there. Then I'd install my other apps in the apps/ directory, and see if their .htaccess rewrite rules work.
Judebert
---
Website | Wishlist | PayPal
ameo
Regular
Posts: 143
Joined: Fri Sep 26, 2008 4:13 am

Post by ameo »

judebert wrote:Good question. You may need to move s9y to a subdirectory.

I've got another idea, but I'm not sure it would work.

I'd make a directory "apps" in my root, and put the .htaccess with "RewriteEngine Off" in there. Then I'd install my other apps in the apps/ directory, and see if their .htaccess rewrite rules work.
i'll try that now
ameo
Regular
Posts: 143
Joined: Fri Sep 26, 2008 4:13 am

Post by ameo »

Not Working!
judebert
Regular
Posts: 2478
Joined: Sat Oct 15, 2005 6:57 am
Location: Orlando, FL
Contact:

Post by judebert »

Yeah, I was afraid of that. It sounds like you'll need to move s9y to a subdirectory so its .htaccess doesn't try to control all the other subdirectories.
Judebert
---
Website | Wishlist | PayPal
ameo
Regular
Posts: 143
Joined: Fri Sep 26, 2008 4:13 am

Post by ameo »

judebert wrote:Yeah, I was afraid of that. It sounds like you'll need to move s9y to a subdirectory so its .htaccess doesn't try to control all the other subdirectories.
that might be a problem as s9y is the main site engine!
why does s9y take control like this? i've tried so many other cms and all didn't take over all .htaccess rules!?

i can't deny that s9y is the BEST CMS i've ever used to far but forcing me to use ONLY s9y on my web space .. this is a killing point :|

hope there is anyway to fix this,
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!
that might be a problem as s9y is the main site engine!
why does s9y take control like this? i've tried so many other cms and all didn't take over all .htaccess rules!?
Because s9y tries to be flexible to support all kinds of custom permalinks! This can only be done if s9y accepts all *.html links and refers them back to its parent file.

mod_rewrite is simply not biult to "overwrite" .htaccess rules for subdirectories. This is more a flaw of mod_rewrite, not of s9y.

There are also many other CMSes that act like this and redirect all their subpages to the main index. I believe, even Typo3 does something like this.
i can't deny that s9y is the BEST CMS i've ever used to far but forcing me to use ONLY s9y on my web space .. this is a killing point :|
Of course it allows you to, but then you cannot use s9y in the main root directory. You need to use a different VHost for your other applications, or make s9y live within a subdir and you make a default redirection from your root to the s9y directory by default.

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/
ameo
Regular
Posts: 143
Joined: Fri Sep 26, 2008 4:13 am

Post by ameo »

garvinhicking wrote:Hi!

Because s9y tries to be flexible to support all kinds of custom permalinks! This can only be done if s9y accepts all *.html links and refers them back to its parent file.

There are also many other CMSes that act like this and redirect all their subpages to the main index. I believe, even Typo3 does something like this.
Of course it allows you to, but then you cannot use s9y in the main root directory. You need to use a different VHost for your other applications, or make s9y live within a subdir and you make a default redirection from your root to the s9y directory by default.
regards,
Garvin
i agree with you that s9y gives us really good premalinks control, but i also need to mention that habber, chyrp, joomla and wordpress all offer a respectable [pretty] premalinks too and without the complications in .htaccess rules that s9y has.
i'm not saying they're better - coz they aren't- i tried almost all blogging engines listed and all was giving me hard time is things related to the core / content handling, and not links structure.

***********************************

as for moving s9y to a subdir. do i need to do anything beside moving all the files related to s9y in my root to a subdir?

thanks





[/quote]
judebert
Regular
Posts: 2478
Joined: Sat Oct 15, 2005 6:57 am
Location: Orlando, FL
Contact:

Post by judebert »

Judebert
---
Website | Wishlist | PayPal
ameo
Regular
Posts: 143
Joined: Fri Sep 26, 2008 4:13 am

Post by ameo »

judebert wrote:There are some database settings to change, too. Here's an illustrated guide showing how to move Serendipity to a new directory.
Thanks , i think that would do the job :)
ameo
Regular
Posts: 143
Joined: Fri Sep 26, 2008 4:13 am

Post by ameo »

i got the whole moving to subdir steps,
just one point that i wanna know about!

the images saved into my posts!

all the URL are like " ROOT/Uploads/Img-Name "

will that be auto-fixed through the engine or i'll have to edit ALL the entries i have on my blog?

i have about 150 img there and it'd be painful to keep on editing all the URLS !

thanks
Post Reply