redirect question
Posted: Mon Jan 18, 2010 9:03 am
I need to add some non-php code to the pages of a website for beeing able to redirect the user to a different website (a mobile version) in case the page was accesed from a mobile device.
If user has javascript enabled, I can put a script that has as src a page from another website that checks with php if the device is mobile and, if it is, redirects the user with document.location.href to the mobile website.
Is there any way I can do this redirect if the user doesn't have javascript?
Thank you!
If user has javascript enabled, I can put a script that has as src a page from another website that checks with php if the device is mobile and, if it is, redirects the user with document.location.href to the mobile website.
Is there any way I can do this redirect if the user doesn't have javascript?
Thank you!