I am having the following two urls that give me some nasty 404 errors that I would like to fix by adding some rewrite rules to apache and I must recongnize that I don't understand regular expressions enough to be able to write the correct rules.
FIRST URL
http://www.example.com/fincas-rusticas/finca-rustica_en_alacant-alicante/lalacanti/alicante/function.strtotime
Must redirect to the same url without /function.strtotime at the end.
SECOND URL, nasty one.
http://www.example.com/casas/casas_en_malaga/malaga/malaga/
Strict Standards: Only variables should be passed by reference in /var/www/vhosts/eldeposit.com/httpdocs/protected/helpers/Search.php on line 1398
/casas/casas_en_malaga/malaga/malaga/venta-vivienda-29-473-24693-0-0
This one must remove the part with the strict standards error. I don't know if it even can be done with a regular expressions or I better program it in php