htaccess + subdomain problem

Having trouble installing serendipity?
Post Reply
degnyx
Regular
Posts: 6
Joined: Fri Jun 30, 2006 7:07 pm

htaccess + subdomain problem

Post by degnyx »

Hi,

I recently installed serendipity on my domain root, however i also have a website on a subdomain wich has nothing to do with my blog.
Everything went well and the blog works like a charm but after installation my phpnukesite on the subdomain suddenly stopped working. (gave me an error that the modules were not active)

I traced the problem down to the .htaccess file in the domainroot folder if i remove this file my subdomain works great, but i suppose serendipity relies on this file to operate properly.

What can i do to get both working?

Thanks a lot :)
judebert
Regular
Posts: 2478
Joined: Sat Oct 15, 2005 6:57 am
Location: Orlando, FL
Contact:

Post by judebert »

The S9Y-root .htaccess redirects all URLs in its subdirectories to Serendipity. You can turn off that redirection in any particular subdirectory by giving it its own .htaccess with more specific rules, or even turning off redirection. For example, add this .htaccess to a subdirectory:

Code: Select all

RewriteEngine Off
...and all URLs in that subdirectory will be interpreted literally. Should work for your phpnuke site.

Let us know if you need anything else!
Judebert
---
Website | Wishlist | PayPal
degnyx
Regular
Posts: 6
Joined: Fri Jun 30, 2006 7:07 pm

Post by degnyx »

Thanks for the fast reply, its appreciated :)

I did as you said and made a .htaccess file with the contents:

Code: Select all

RewriteEngine Off 
I tried to place it in several dirs of my subdomain, the file is there on the server, i can see it but every link cliked on the phpnuke site still gives me the error message: "sorry this module isn't active"

I am 100% sure it is not my phpnuke site because if i remove the htaccess file from serendipity my nuke site works great.

Is there a specific dir in wich to place the htaccess file, or do i need to go through all the dirs and subdirs on my subdomain and place the htaccess file in each of them?

To clarify here are the urls:

www.degnology.com - This is the blog site
http://thg.degnology.com - this is my phpnukesite wich gives the module errors

Thanks again:)

EDIT:
I needed to have my nukesite available to it's users so while i wait for a reply i now temporary placed serendipity in a subdir so i atleast have my nuke site working properly :)
Last edited by degnyx on Sat Jul 01, 2006 12:04 am, edited 1 time in total.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

If you put that htaccess file there, it might also be that postnuke might rely on a "ErrorDocument" or "DirectoryIndex" directive specific to the directory.

I suggest you to go to the postnuke forums, show them the .htaccess of your serendipity root and ask them which directives interfer with a postnuke installation.

Sadly I can't help you, because it's actually postnuke having a problem with serendipity, and not serendipity having a problem with postnuke -- I don't know the structure of postnuke and can only thus tell you that the s9y .htaccess values might interfer. The reason for that is that .htaccess directives are inherited from the parent directory from all subdirectories.

Thus the best way to deal with it is to put postnuke not into a subdirectory of serendipity, but instead put them parallel to each other so that no application is within the folder.

So instead of having serendipity in "/" and postnuke in "/postnuke", you should have a "/serendipity" and a "/postnuke" directory.

Best 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/
degnyx
Regular
Posts: 6
Joined: Fri Jun 30, 2006 7:07 pm

Post by degnyx »

Thanks for the reply, support here seems excellent!
Nice work!

I understand what you are saying and i feared it was this way already.

What i'll do for now is put serendipity in a subdir of my root as well so that way i at least have both sites up and running. I'll go to phpnuke forums and see what they can come up with, if i find a solution i'll update my post :)
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

Thanks a lot, this would really interest me. Good luck!

Best 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