[Flow] Add Rewrite Rule to .htaccess
Rémy DANIEL
dogawaf at no-log.org
Fri Jul 17 14:48:27 CEST 2015
Hi Patrick
If I understand correctly, you are trying to rewrite
"/c/1/0/0/2?%40format=html" to "/"?
The webserver (here Apache) rewriting process takes place when the url
requested by a client is parsed, not the other way.
If you want that your root url "/" displays the page
"/c/1/0/0/2?%40format=html", then you have at least two options:
1. add a route in your base Routes.yaml with an empty string as uriPattern,
and a default @controller, @action, and @format. The action on your
controller could then redirect to whatever you want.
2. or add a rewrite rule in your .htaccess, preferably with a redirection:
RewriteRule / c/1/0/0/2?%40format=html [R=301,L]
I would suggest the first solution.
Cheers
--
Rémy
2015-07-16 19:43 GMT+02:00 Patric Eckhart <mail at patriceckhart.com>:
> Hey Rémy,
>
> I have tried this
>
> RewriteRule ^/?$ c/1/0/0/2?%40format=html [NC,L]
>
> this "c/1/0/0/2?%40format=html" come from Routes.yaml
>
> The URL look like this: http://domain.com/c/1/0/0/2?%40format=html
> I would have the URL http://domain.com/
>
> Can you help me again?
>
> _______________________________________________
> Flow mailing list
> Flow at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/flow
>
More information about the Flow
mailing list