Hello,
I'm rewriting a page called team.php that takes the $_GET variable of teamid.
Right now the URL rewriting makes this URL look like this "http://www.bball.tf/team/?teamid=9"
where I want the URL to look like this, "http://www.bball.tf/team/9"
The rewrite rule looks like this,
#team.php
RewriteRule ^team$ "$0/" [R=301,L,QSA]
RewriteRule ^team/$ team.php [L,QSA]
RewriteRule ^team/.*?([^\.\/]*)\.html$ team.php?pname=$1 [L,QSA]
RewriteRule ^team/([1-2]\d{3})/(?:(0[1-9]|1[0-2])/(?:(0[1-9]|1[0-9]|2[0-9]|3[0-1])/)?)?$ team.php?d=$1$2$3 [L,QSA]
RewriteRule ^team/[^\.]*?([^/\.]*)/$ team.php?fname=$1 [L,QSA]
RewriteRule ^team/[^\.]*?([^/\.]*)$ "$0/" [R=301,L,QSA]
Any help would be appreciated.
Thanks.
I'm rewriting a page called team.php that takes the $_GET variable of teamid.
Right now the URL rewriting makes this URL look like this "http://www.bball.tf/team/?teamid=9"
where I want the URL to look like this, "http://www.bball.tf/team/9"
The rewrite rule looks like this,
#team.php
RewriteRule ^team$ "$0/" [R=301,L,QSA]
RewriteRule ^team/$ team.php [L,QSA]
RewriteRule ^team/.*?([^\.\/]*)\.html$ team.php?pname=$1 [L,QSA]
RewriteRule ^team/([1-2]\d{3})/(?:(0[1-9]|1[0-2])/(?:(0[1-9]|1[0-9]|2[0-9]|3[0-1])/)?)?$ team.php?d=$1$2$3 [L,QSA]
RewriteRule ^team/[^\.]*?([^/\.]*)/$ team.php?fname=$1 [L,QSA]
RewriteRule ^team/[^\.]*?([^/\.]*)$ "$0/" [R=301,L,QSA]
Any help would be appreciated.
Thanks.