First of all, I apologize if this problem isn't appropriate for the coding forum (or any forum on this site). I saw some mod_rewrite threads in this forum so I assumed it would be all right.
My problem is mod_rewrite. Here's what I have in my .htaccess file right now:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule ^([a-zA-Z0-9]+)$ index.php?page=$1
RewriteRule ^([a-zA-Z0-9]+)/$ index.php?page=$1
</IfModule>
Say my page is named "nameofpage". The following URLs will work:
sitename.com/nameofpage
sitename.com/nameofpage/
My problem is that I'd like to have slashes in some of the page names. Say my page is named "nameof/page". I'd like the following URLs to work:
sitename.com/nameof/page
sitename.com/nameof/page/
They don't work, though. I figured it has something to do with this part of the rewrite rule:
CODE[/CODE]
I've tried replacing it with different things. I've read different examples, the Apache manual, etc. Still no luck. The closest I got was a rewrite rule that allowed this to work (again assuming the page is named "nameof/page"):
sitename.com/nameof/page
but not:
sitename.com/nameof/page/
If anyone has any ideas I would really appreciate it. Thank you very much.