Does anyone know about cleaning up URLs for CMS?
I had a .htaccess file containing the following code (or so far as I can remember)
RewriteEngine On
RewriteRule ^([a-z])$ /index.php?url=$1 [L]
RewriteRule ^/article/([a-z])$ /index.php?url=$1&type=news [L]
which was working fine ie: www.mysite.com/somepage loaded the "mypage" content into my index.php file (www.mysite.com/index.php?url=mypage)
However, when adding content, I came across a situation where the url was containing both numbers and letters, which of course won't work with this pattern. I changed the [a-z] bit to a wildcard, which returned a 500 error, so I changed it back again and just get a 404 error.
I have been through all the forums and what feels like hundreds of different rewrites, but they all return 404 errors - even redirecting everything to the index.php file :S
Any ideas where I could be going wrong? It's so infuriating that it was working in what I think was the same code!!!
By the way, I have also tried altering whitespace as I know this can cause a problem in some languages.