I just learning to do the .htaccess mod rewrite and i got some of it complete, but i am difficulties with longer and more complex urls
here is what i have so far that all work
RewriteEngine On
RewriteBase /
RewriteRule ^injuries/(.*)$ ?opt=injuries&league=$1 [L]
RewriteRule ^(transactions)(/)?$ ?opt=reglog [L]
RewriteRule ^(prospects)(/)?$ ?opt=entrydraft [L]
RewriteRule ^(league-awards)(/)?$ ?opt=awards [L]
RewriteRule ^(rules)(/)?$ ?opt=viewpage&type=html&id=0001 [L]
RewriteRule ^(playerlist|freeagents|drafts)(/)?$ ?opt=$1 [L]
here is a url that i'm trying to get to work
http://www.theufhl.com/?opt=schedule&sid=000000000014&league=1
and how i get the above url in php
?opt=schedule&sid='.$sid.'&league='.$thisleagueid.'
any pointers on how i can do this is appriciated.
I found a mod rewrite generator but i keep getting a 500 error