1. index.php?do=x(alphabets)&type=y(alphabet)
2. index.php?do=x(alphabets)&type=x(alphabet)&id=z(numeric)
is this the correct rewrite rule for these two
- Code: Select all
RewriteRule ^do/([A-Za-z0-9-]+)/([A-Za-z0-9-]+)$ index.php?do=$1&type=$2 [L,QSA]
RewriteRule ^do/([A-Za-z0-9-]+)/([A-Za-z0-9-]+)/([0-9]+)$ index.php?do=$1&type=$2&id=$3 [L,QSA]
what i want the static url like is do/x/y and do/x/y/z
Also i want to do 301 redirect of the old static urls i have made. it was like x/y for the first one and x/z.html for the second one. how can i do that.
[/code]