I'm currently using this .httaccess-code
RewriteEngine on RewriteBase / RewriteRule ([A-Za-z0-9_åäöÅÄÖ]+)$ /show.php?$1
which redirects the visitor from www.site.com/pelle to www.site.com/show.php?pelle
unfortunately isn't www.sidan.se/per-erik working with this code, so what should I add to make - (hyphen) work?
Thanks!
Add a hyphen to the character class:
RewriteRule ^([A-Za-z0-9_\-åäöÅÄÖ]+)$ /show.php?$1
Why don't you shorten it to this?
RewriteRule ^([\w\-åäöÅÄÖ]+)$ /show.php?$1
Both of your suggestions gave me a internal server error, what could be causing that?
Check your syntax and error log file, it works for me.