Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
QUESTION Migrating old slugs with underscores and caps
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}

I cant say i know exactly how
NEW: SA Admin Toolbar Plugin | View All My Plugins
- Shawn A aka Tablatronix

Messages In This Thread
RE: Migrating old slugs with underscores and caps - by shawn_a - 2016-11-18, 01:22:20

Users browsing this thread: 1 Guest(s)