I wish to have 3 possibility's:
* Or Id = a random 3 digit number...
* Or Id = 'new'
* Or id does'nt exist
Based on the above possibility's, the mod rewrite has to act, like I have written... But I'm getting always a 404 page.
Can someone help me out please ?
Thanks,
Deef
- Code: Select all
#id must be RANDOM 3 DIGIT NUMBER for example id=456
RewriteRule ^(.+)/clips-(.+)\?id=456$ redirect.php?subd1=$1&link1=$2 [L]
#id must be NEW so id=new (for the redirect) -- I don't need the variables here... becausse I read out the url
RewriteRule ^(.+)/clips-(.+)\?id=new$ redir.php [L]
#There is NO ID, it does not exist
RewriteRule ^(.+)/clips-(.+)$ redirect.php?subdomain=$1&link=$2 [L]