I have a rewriterule like this: The problem is that the second part of the url - ie the "name" part - sometimes contain slash "/" and so I'll get "page not found" error. for example: am/234850/thisIsA/Name even url encode isn't working. What's the solution.
Options +FollowSymLinks +Indexes RewriteEngine on RewriteBase / RewriteRule ^am/([^.]+)/([^.]+)/([^.]+)$ thePage.php?itemId=$1&name=$2 [L] RewriteRule ^am/([^.]+)/([^.]+)$ thePage.php?itemId=$1&name=$2 [L] might do it. Or make the script search and replace the / to something else, like a -