Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

HTML/JSP switch

Name: Alex 2013-05-08 11:49

Hallo /comp/!

I have been searching for a method in wich a server sends the content of a website to a PC in HTML and the same content of that website to smartphones in JSP.

What are the posibilities? is there a way so that server can know where the requested URL was made from? (eg: PC, laptop, tablet, phone)

Thanks for your suggestions!

Name: Anonymous 2013-05-10 5:58

use php to check the user agent of the browser, firefox for smartphone etc

Name: Anonymous 2013-05-10 20:51

What >>2 said but do it in the webserver config not PHP, Apache has mod_rewrite, nginx has HttpRewriteModule, not sure about others.

Don't change these.
Name: Email:
Entire Thread Thread List