If you visit hotscripts.com you'll notice there are several categories for scripts such as PHP and ASP. If you click PHP then the url shows: hotscripts.com/PHP/
then if you click for example polls it will show: hotscripts.com/PHP/Polls/
I really doubt they have hundreds of directories, so are they using mod_rewrite?
What would be the mod_rewrite code to make something like that work? I can't seem to figure it out. I can make it work for just one directory, but not 2 or more.
For example if I make the mod_rewrite code like this:
Options +FollowSymLinks
RewriteEngine On
RewriteRule (.)/(.)$ index.php?dir1=$1&dir2=$2
That will work ONLY for 2 directories, meaning if I typed this in the url:
test.com/PHP/
It would print an error because it's expecting 2 things, meaning this would work: (test.com/PHP/Polls/).
So how does hotscripts do it? What am I doing wrong?
Thanks in advance š