www alias directories

1 view
Skip to first unread message

ed209

unread,
Dec 28, 2007, 7:46:05 AM12/28/07
to Seagull PHP Framework General Group
Hi,

I have a problem with the modules/someModule/www and it's symlink
created in the main www folder. Take the media module as an example.
When installing the media module, it created /www/media which it
should do. But I then removed the front controller script "index.php"
and added the "cool URL" .htaccess file to www.

The problem is that if I go to www.mysite.com/media I don't get the
media module, I get the list of content of the /www/media symlinked
directory. Is there a solution to this?


Thanks,
Ed.

Julien Casanova

unread,
Dec 28, 2007, 9:44:23 AM12/28/07
to seagull...@googlegroups.com
Hi Ed,

Le 28 déc. 07 à 13:46, ed209 a écrit :

> But I then removed the front controller script "index.php"
> and added the "cool URL" .htaccess file to www.
>
> The problem is that if I go to www.mysite.com/media I don't get the
> media module, I get the list of content of the /www/media symlinked
> directory. Is there a solution to this?

This pb comes with the .htaccess file that has 2 conditions to
rewrite the url. It checks whether the FILENAME is a file or a
directory. If this is the case, the rewrite rule doesn't happen.
Try to replace:

RewriteCond %{REQUEST_FILENAME} !-d

By:
RewriteCond %{REQUEST_FILENAME} !-d [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]

In www/.htaccess

The "-l" flag will check also for the FILENAME to be a symlink.
But I wonder if this will work on windows where the moduleName/www
directory is copied instead of being symlinked. Anyone on windows
could check?

Cheers,

--
Julien

Clay Hinson

unread,
Dec 28, 2007, 11:43:55 AM12/28/07
to Seagull PHP Framework General Group
Does not work in windows unless you are using the linkd tool to allow
symlinks to be created.

On Dec 28, 9:44 am, Julien Casanova <julien_casan...@yahoo.fr> wrote:
> Hi Ed,
>
> Le 28 déc. 07 à 13:46, ed209 a écrit :
>
> > But I then removed the front controller script "index.php"
> > and added the "cool URL" .htaccess file to www.
>
> > The problem is that if I go towww.mysite.com/mediaI don't get the

ed209

unread,
Jan 3, 2008, 9:51:52 AM1/3/08
to Seagull PHP Framework General Group

> By:
> RewriteCond %{REQUEST_FILENAME} !-d [OR]
> RewriteCond %{REQUEST_FILENAME} -l [OR]
>
> In www/.htaccess

I got a 500 error code when I tried that. I will look into your
suggestion in more detail though. The default SGL rewrite rules have
also caused another issue related to one of my previous posts about
being able to receive a GET var like this www.mysite.com/?P36=abc123 .
With the rules enabled, SGL looks for a module called P36 so what I'd
like to do is check if there is a P36 var being sent and if so send
that request to www.mysite.com/default/?P36=123abc

thanks.

mi...@deafzone.ch

unread,
Jan 3, 2008, 9:52:46 AM1/3/08
to seagull...@googlegroups.com
Ich bin nicht da, weg, in den Ferien ab dem 1. Januar 2008 bis 14. Januar 2008.
Danach werde ich natuerlich alle Emails beantworten.

+++

I am not here, away for holidays from 1st January 2008 until 14th January 2008.
After that I will answer all emails for sure.


mi...@deafzone.ch

unread,
Jan 3, 2008, 9:53:08 AM1/3/08
to seagull...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages