Currently I am doing a small code in symfony that will cause url have resource like this:
http://url/val/abc.abxhd
I was able to get the parameter abc successfully from http://url/val/abc
, but when I try to run the URL of http://url/val/abc.abxhd
. Symfony simply throw a 404 error.
What could be the problem here. the URl are written using rawurlencode also.
group:
url: /group/:group
param: {module: group, action: show}
requirements:
sf_method: [get]
Actually symfony was finding dot (.) as a segment separator. This is the reason why in my case it cannot find the route. After Add the ff to my route. it works just like expected:
group:
url: /group/:group
param: {module: group, action: show}
requirements:
sf_method: [get]
options:
segment_separators: [/]