Hi,
I've created a regexp to redirect all pages that is not verArtigo.php, index.php, userview.php, ..., verSubCategoria.php to verArtigo.php. Follow:
RewriteRule /artigos/[^(verArtigo\.php|index\.php|userview\.php|contarVoto\.php|impressora\.php|navegacao\.php|votar\.php|verSubCategoria\.php)].*$ /artigos/verArtigo.php
So when I access:
http://localhost/artigos/30_motivos_para_usar_o_Linux/
It works... and works most of other samples. But in some cases it doesn't match pattern, for example:
http://localhost/artigos/Servidor_de_em ... a_e_MySQL/
I'm confused on regexp syntax. I'd like to do:
RewriteRule /path/(anything except file1.php, file2.php or file3.php) /path/newURL
This is my quest: (anything except file1.php, file2.php or file3.php)
How can I create this rule?
Thanks.