Mod Rewrite 08.05.08
I have a web site in which I want to implement meaningful URLs through the use of Mod Rewrite.
The web is located here:
http://www.noaguanto.com/
And what I want to achieve is:
1) Converting URLs like this
http://www.noaguanto.com/rants/queja/181
into this:
http://www.noaguanto.com/que-cuando-esta-nublado-y-llevo-paraguas-nunca-llueva-y-cuando-lo-dejo-en-casa.html
So, basically, the job consists in:
a) Take the first n characters of the post title
b) Make it available through an URL where
b-1) spaces have been converted to -
b-2)
áéíóú to aeiou
àèìòù to aeiou
äëïöü to aeiou
ÁÉÍÓÚ to AEIOU
ÀÈÌÒÙ to AEIOU
ÄËÏÖÜ to AEIOU
ñ to n
Ñ to N
ç to c
Ç to C
c) URLencode any other special character
2) Converting category URLs like:
http://www.noaguanto.com/rants/show/1
Into an URL containing the name of the category itself:
http://www.noaguanto.com/trabajo
As you see, the name of the category (coming from the database) must be used. The conversion rules defined above must be implemented here too
These links (which are not categories themselves)
http://www.noaguanto.com/rants/show
http://www.noaguanto.com/rants/top10
Must be converted into
http://www.noaguanto.com/recientes
http://www.noaguanto.com/top10
Despite the long description, this is a very simple project for somebody with experience in .htaccess and mod rewrite. Please bid accordingly



