mod rewrite - How long is too long for an .htaccess file? -
I wonder if my .htaccess
file is too long / disabled? 250 lines like the Rialite Rule:
rewrite ^ (en | de | fr) / foobar $ site = foobar and lang = $ 1 [L] Remitament rules ^ (en | de | fr) / FOBr / Bar / 123 $? Site = Fuß & amp; Value = bar and other values = $ 2 and gender = $ 1 [L]
Is there a way to do it more efficiently?
Yes, instead of processing stars inside PHP, especially considering the performance overhead, There is nothing to be too much in your application logic in.
Change a whole lot, or as much as you can, with anything else:
Rewrite rules ^ ([-A-Za-z0-9 /] +) $ Index.php? Q = $ 1 [NC, L, QSA]
and start explode ()
:) to learn to love (and list) / Code>! - Thanks MACU!)
Comments
Post a Comment