[symfony-users] Re: URL's with dots ('.')

2008-12-03 Thread Lee Bolding
I've had problems with funny URLs before... You can solve it a few ways, base64 encoding sometimes works, but that sometimes products URLs with /'s in, which also break routing rules. Look in the PHP manual for 2 way encoding/decoding functions, and choose one that works for you... On 3 De

[symfony-users] Re: URL's with dots ('.')

2008-12-03 Thread Sid Bachtiar
Hi, I've had problem with this too. I don't know any general solution to this problem. For my case, I needed the dot because I was passing email address in the URL. So I solved it by adding one line (the line with @) in the web/,htaccess # we skip all files with .something RewriteCond %{REQ

[symfony-users] Re: URL's with dots ('.')

2008-12-03 Thread Gunnar Lium
Although not always possible or desirable, you can also get around this problem by creating urls with ?. For example somedomain.com/profiles/[EMAIL PROTECTED] 2008/12/3 Sid Bachtiar <[EMAIL PROTECTED]> > > Hi, > > I've had problem with this too. I don't know any general solution to > this problem.

[symfony-users] Re: URL's with dots ('.')

2008-12-03 Thread Sumedh
Thanks guys So Sid, I was thinking this is a problem with symfony routing that it doesn't handle dots...but the problem actually lies at Apache layer where it doesn't pass along the parameters correctly to the routing layer of symfony...right? If I write rule for URL - http://www.example.com

[symfony-users] Re: URL's with dots ('.')

2008-12-03 Thread Sid Bachtiar
The problem is with Symfony's .htaccess. Not in Symfony's controller nor in Symfony routing. Just in .htaccess. In a way this is a Symfony 'shortcoming' > If this problem can get solved by the apache rule, as you have said, I > won't need to do any special handling or encoding of the dots... :)

[symfony-users] Re: URL's with dots ('.')

2008-12-04 Thread Sumedh
Thanks Sid... Now...I have a URL that is something like - http://www.example.com/string.with.dots/file.html So, it doesn't contain something like '@' by which I can identify a URL that is NOT to be skipped... How do I handle this case? Ideally, I would want the dots to be handled just like no

[symfony-users] Re: URL's with dots ('.')

2008-12-04 Thread Sid Bachtiar
> What's the problem if the request is handed over to > controller in all cases? May be this is a foolish question...but > honestly, it's not very clear to me... Well, some URL are not for the controller. for example: images/something.gif or css/style.css or js/script.js I think it is better to

[symfony-users] Re: URL's with dots ('.')

2008-12-04 Thread Fabrice B
This is a recurrent problem with the default .htaccess or the lighttpd configuration for symfony For example, if you want to pass float values as parameters. The solution lies in customising your rewrite rules in you .htaccess or lighttpd.conf to better reflect your own configuration. You may ne

[symfony-users] Re: URL's with dots ('.')

2008-12-04 Thread Nicolas Perriault
On Thu, Dec 4, 2008 at 10:57 AM, Fabrice B <[EMAIL PROTECTED]> wrote: > The solution lies in customising your rewrite rules in you .htaccess > or lighttpd.conf to better reflect your own configuration. You may > need to plunge a little into regular expressions for that. I'm using this .htaccess

[symfony-users] Re: URL's with dots ('.')

2008-12-04 Thread Sumedh
Okk...Great inputs friends... :) I think writing this line should suffice for me (along with other 2 default ones) - RewriteCond %{REQUEST_URI} !\..*/.*$ What I want to write is "Dont skip the ones with a DOT and then some content and then a slash and then some content" So, basically I want

[symfony-users] Re: URL's with dots ('.')

2008-12-04 Thread Sid Bachtiar
Care to collaborate what it does? :) I tried it and it seems to work nicely On Thu, Dec 4, 2008 at 11:15 PM, Nicolas Perriault <[EMAIL PROTECTED]> wrote: > > On Thu, Dec 4, 2008 at 10:57 AM, Fabrice B <[EMAIL PROTECTED]> wrote: > >> The solution lies in customising your rewrite rules in you .hta

[symfony-users] Re: URL's with dots ('.')

2008-12-04 Thread Eno
On Thu, 4 Dec 2008, Sid Bachtiar wrote: > > Care to collaborate what it does? :) > > I tried it and it seems to work nicely The normal htaccess file skips ANY file with a dot in the URL. I think his version explicitly states which files to ignore using this expression: \.(css|js|png|

[symfony-users] Re: URL's with dots ('.')

2008-12-05 Thread Sid Bachtiar
Doh LOL ofcourse I actually did something like that, a little bit differently. One thing though, you have to remember to modify the .htaccess if you have other extensions like jpeg, jpe, swf, flv, mov, mp3, pdf, and so on. I guess you could add them all there. On Fri, Dec 5, 2008 at 7:59 PM, Eno

[symfony-users] Re: URL's with dots ('.') - lighttpd

2009-05-27 Thread Timothy Bowler
Hi, Here is the config of our dev - this also allows (.)'s - hope it helps $HTTP["host"] == "devsite.ere" { server.document-root = "/var/www/vhosts/devsite.ere" alias.url = ( "/sf" => "/usr/share/php5/symfony/data/web/sf" ) fastcgi.server = ( ".php" => (( "bin-path" => "

[symfony-users] Re: URL's with dots ('.') - lighttpd

2009-05-27 Thread ezequielc
That is how it worked for me: url.rewrite-once = ( "^/css/.+" => "$0", "^/js/.+" => "$0", "^/images/.+" => "$0", "^/uploads/.+" => "$0", "^/flv/.+" => "$0", "^/swf/.+" => "$0", "^/favicon\.ico$" => "$0", "^/sf[A-z]+Plugin.*" => "$0", "^/sf/.+" => "$0", "^/(