Pretty URL with 2 variables
I'm in the process of rebuilding a couple of results/detail pages on ten of our client's websites. This is a 'people' page with a list of staff which then links through to a further details page. Currently the URL for the details page is as follows:
I'd really like to make the URLs SEO-friendly:
I found a Mod Rewrite generator here: https://www.generateit.net/mod-rewrite/ and it gave me the following htaccess code:
RewriteRule ^([^-]*)-([^-]*)$ /people2?Name=$1&Surname=$2 [L]
I copied that into my very lengthy htaccess file and it didn't work - if I try to access the pretty link I just get a server error. I know this is really outwith your remit but thought you might know what I'm doing wrong as you're generally very knowledgeable? I've attached the text of the htaccess file for info - the new line is at the bottom.