I didn't see anywhere where you show what you WANT the links to look
like?

Perhaps mydomain.com/ or mydomain.com/module  ?

I'm no expert, but perhaps you want the base to be '/' not '/app/web'

On Sep 12, 8:52 am, MiloszeS <milos...@gmail.com> wrote:
> I've changed the .htaccess as below:
>
>   RewriteEngine On
>   RewriteBase /app/web
>   RewriteRule (.*) /app/web/$1
>
> But Symfony still generates links mydomain.com/app/web/module. Should
> I change something in the Symfony configuration files ?
>
> MiloszeS
>
> On 12 Wrz, 17:27, Gábor Fási <maerl...@gmail.com> wrote:
>
>
>
> > You have to set the RewriteBase before any RewriteRules you have.
> > Also, as you know mod_rewrite is enabled, I'd remove the IfModule
> > lines for a small gain on performance - the condition is always true
> > anyway.
>
> > On Sat, Sep 12, 2009 at 16:51, MiloszeS <milos...@gmail.com> wrote:
>
> > > The .htaccess file located in: /home/a/htdocs
>
> > > <IfModule mod_rewrite.c>
> > >  RewriteEngine On
> > >  RewriteRule (.*) /app/web/$1
> > > #  RewriteBase /app/web
> > > </IfModule>
>
> > > I've tried to set RewriteBase - like in the commented line but without
> > > effect.
>
> > > On 12 Wrz, 16:13, Eno <symb...@gmail.com> wrote:
> > >> On Sat, 12 Sep 2009, MiloszeS wrote:
> > >> > I have a virtual host defined to a folder /home/a/htdocs and don't
> > >> > have an access to the apache configuration files. My Application is
> > >> > located in /home/a/htdocs/app. I've created a rule in .htaccess to
> > >> > rewrite a url to app/web folder. Everything works fine - when I
> > >> > connect to myydomain.com, the page appears correctly. There is a one
> > >> > issue withe the mentioned solution - all links generated by he symfony
> > >> > looks: mydomail.com/app/web.
>
> > >> What does your .htaccess file look like? Have you looked at the
> > >> RewriteBase setting?
>
> > >> --- 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 symfony-users@googlegroups.com
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to