Mea culpa :)

Symfony generates the following links:

htttp://mydomain.com/app/web/module

I would like to have the following links:

http://mydomain.com/module

The problem is (i think so) that the DocumentRoot points the /home/a/
htdocs/ folder but the symfony web folder is located at /home/a/htdocs/
app/web .

I've founded the solution on google today (If someone have a similar
problem). I've moved a project folder to a different location ex. /
home/a/app and created a symbolic link from htdocs folder (htdocs
points /home/a/app).

It works as I expected, but does another "better" solution exists ?


Regards,
MiloszeS



On 12 Wrz, 21:19, Dennis <[email protected]> wrote:
> 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 <[email protected]> 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 <[email protected]> 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 <[email protected]> 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 <[email protected]> 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 [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
-~----------~----~----~----~------~----~------~--~---

Reply via email to