Hi, i need a php only redirection, when someone open this in webbrowser mydomain.com/?id it will redirect to mydomain.com/idiot.php please how the php code will look like?
Why don't you do this in .htaccess? Besides, if you wanna do it in PHP, you'd need something to pick up the ?fr-variable - so I would suggest you redo it, perhaps with mydomain.com/french (easier) and still use .htaccess In PHP, you could do this by using a check for a $_GET['variable'] and if it's set and matches whatever, you redirect via header('location: URL');
Thx, a solution 2 i found: http://internetlifeforum.com/php-mysql-forum/1487-php-redirect-when-url-contains-match/