|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Generate data entry and reporting .NET Web apps in minutes, straight from your database. Read our FREE whitepaper “Build Web 2.0 Applications Without Hand-Coding” Download now! |
|
#1
|
|||
|
|||
|
Hi All
I need to redirect users to a WAP site when they browse from there mobiles. They need to be redirected from www.mysite.co.za to www.mysite.co.za/xhtml. How do I go about doing this in C#? Thanks |
|
#2
|
||||
|
||||
|
Welcome to Dev Shed,
Please try to do a little research before posting. Here is just one result when I queried google: check the Request.Browser properties..
__________________
Cheers, Jamie # skiFFie | Home of the 'accessibility module' for Drupal # Jamie Burns [me] Accessibility Module [drupal] # guidelines | search | wap resources | not getting help | fold to cure # Any form of employment is strictly prohibited ...... __________________ Let the might of your compassion arise to bring a quick end to the flowing stream of the blood and tears ..... Please hear my anguished words of truth. __________________ |
|
#3
|
|||
|
|||
|
try this:
Code:
<?
$wmlredirect = "xhtml.php";
header("Location: ".$wmlredirect);
?>
save as file-name.php good luck |
|
#4
|
||||
|
||||
|
jessica, welcome to devshed, that snip of code would redirect all requests not just ones where the user is on a cellphone.
There are a few threads here where solutions have been talked about and as jabba pointed out there are loads of resources on the web.
__________________
Andy Moore << oh no it's got a blog..... Word Press WAP Plugin with Ad Mob Advertising revenue PHP developer deploying ringtones, mp3 downloads and realtones I'm a geek who's obsessed with stats and gadgets |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > WAP Programming > Redirecting when Request comes from mobile |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|