It due to incorrect .htaccess. You need to modify it, it can be
really tricky. I recommend setting up a local Apache server and
turning on rewrite logging (unless you have access to do that on your
host already).
Here are some things you can try, and a way to force it to do what you
want.
The /site/.html thing is caused by the rewrite for symfony trying to
rewrite stuff you don't want to be rewritten. Try excluding it by
modifying the first few lines like this
# we skip all files with .something
# requests matching these patterns are not rewritten (-)
RewriteCond %{HTTP_HOST} ^www\.mysite\.com$ [NC] << add this in
to only rewrite the site you want, its a regex so play around with
it. Read the Apache docs for more info. Or use Mohommad's
suggestion, looks close.
RewriteCond %{REQUEST_URI} \..+$
RewriteCond %{REQUEST_URI} !\.html$
RewriteRule .* - [L]
As it sounds like you've already done something like that, you can
always add in this (I had to do this)
# If it messed up and tried to go to the weird "site/.html" redirect
then fix it here
# Making it temporary redirect for now
RewriteCond %{HTTP_HOST} mysitename\.com\.au$ [NC]
RewriteRule ^\.html$ index.html [R=301,L]
For me that worked. But I had a slightly different requirement,
hopefully this gets you to where you need to be. As Mohammad said if
you stop it rewriting in the last case that should be enough.
I can't recommend strongly enough getting a rewrite log of what
Apache's doing, I found it invaluable.
On Jul 16, 4:27 am, laura <[EMAIL PROTECTED]> wrote:
> i'm getting closer, though i get this message:
>
> You don't have permission to access /microsite/.html on this server.
>
> any ideas? the permissions are the same as any other file in the web
> directory.
>
> On Jul 14, 8:46 pm, "Mohammad Ali Safari" <[EMAIL PROTECTED]>
> wrote:
>
> > You should rewrite your .htaccess.
>
> > I think adding
> > RewriteCond %{REQUEST_URI} !/microsite
> > would work. You just need to prevent the last rule, RewriteRule ^(.*)$
> > /index.php [QSA,L], to run in this case.
>
> > cheers,
> > --Mohammad
>
> > On Mon, Jul 14, 2008 at 6:41 PM, laura <[EMAIL PROTECTED]> wrote:
>
> > > hi-
>
> > > i have a symfony site and a non-symfony site, which is a sort of
> > > microsite. i would like the microsite to be called like this:
>
> > >http://www.example.com/microsite
>
> > > but, i'm running into problems with 404s, since symfony doesn't
> > > recognize 'microsite' as a module.
>
> > > any ideas?
>
> > > thanks,
>
> > > laura- Hide quoted text -
>
> > - Show quoted text -
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"symfony users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---