[wp-hackers] Re: Mobile version using a plugin
Matt
speedboxer at gmail.com
Sat Jan 26 03:51:24 GMT 2008
Either use .htaccess, or make the subdomain "m" and then just use the
header(); parts. That's the easiest ways, at least. :P
On Jan 25, 2008 4:31 PM, Chetan Kunte <ckunte at gmail.com> wrote:
> Minor correction in the code (updated below, but not working):
>
> <?php
>
> if ( !strstr( $_SERVER['HTTP_HOST'], 'm.' ) )
> return;
>
> header('HTTP/1.1 301 Moved Permanently');
> header('Location: http://www.google.com/reader/m/view/feed/http://' .
> substr($_SERVER['HTTP_HOST'], 2) . 'feed/atom');
> exit();
>
> ?>
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers
>
--
Matt (speedboxer at gmail.com)
http://mattsblog.ca/
More information about the wp-hackers
mailing list