my url is site.com/nl/url-rewrite/categorie-1
my mod rewrite rules are:
# Rewrite taxonomy URLs
# Input: LANG/url-rewrite/TERM
# Output: url_rewrite.php?term=TERM
RewriteRule ^.{2}/url-rewrite/([A-Za-z0-9-]+)/?$ /url_rewrite.php?term=$1 [L]
# Input: LANG/url-rewrite
# Output: url_rewrite.php
RewriteRule ^.{2}/url-rewrite/?$ /url_rewrite.php [L]
This works fine (not sure if the 2nd rule is the best way to approach this)
Now I'll get a link in google too site.com/nl/url-rewrite/categorie-1
'categorie-1' is the seo friendly alias of my category
If the title of my category changes too 'Categorie 2', my alias will be 'categorie-2' (auto alias)
this link in google site.com/nl/url-rewrite/categorie-1
will not work now
how can I solve this?
I used id's before, so my link would be site.com/nl/url-rewrite/1/categorie-1
But that doens't look so good, I don't want any id's in the url