2016-11-18, 01:22:20
you might be able to handle the slug rules in your rewrite. hmm
if not a hook or plugin would have to translate or clean the slugs
or use a custom fields to add the slug and use a route parser to map them.
Some clever regex might do it, if its supported by your apache, or you could redirect to a php script that does it for you then redirect again...
RewriteMap tolower int:tolower
RewriteRule ^([^/]+)/?$ somedir/${tolower:$1}
http://stackoverflow.com/questions/29236...write-rule
http://stackoverflow.com/questions/12796...ith-dashes
I cant say i know exactly how
if not a hook or plugin would have to translate or clean the slugs
or use a custom fields to add the slug and use a route parser to map them.
Some clever regex might do it, if its supported by your apache, or you could redirect to a php script that does it for you then redirect again...
RewriteMap tolower int:tolower
RewriteRule ^([^/]+)/?$ somedir/${tolower:$1}
http://stackoverflow.com/questions/29236...write-rule
http://stackoverflow.com/questions/12796...ith-dashes
I cant say i know exactly how