Mojolicious-Plugin-RedirectHost

Mojolicious Plugin. It redirects requests to the main host. Useful for SEO.

USAGE

Redirect (301) requests from http://www.main.host to http://main.host
  
  # Mojolicious
  $app->plugin('RedirectHost', host => 'main.host');
  
  # Mojolicious::Lite
  plugin RedirectHost => { host => 'main.host' };


INSTALLATION

To install this module, run the following commands:

	perl Makefile.PL
	make
	make test
	make install

SUPPORT AND DOCUMENTATION

After installing, you can find documentation for this module with the
perldoc command.

    perldoc Mojolicious::Plugin::RedirectHost

You can also look for information at:

    RT, CPAN's request tracker (report bugs here)
        http://rt.cpan.org/NoAuth/Bugs.html?Dist=Mojolicious-Plugin-RedirectHost

    AnnoCPAN, Annotated CPAN documentation
        http://annocpan.org/dist/Mojolicious-Plugin-RedirectHost

    CPAN Ratings
        http://cpanratings.perl.org/d/Mojolicious-Plugin-RedirectHost

    Search CPAN
        http://search.cpan.org/dist/Mojolicious-Plugin-RedirectHost/


LICENSE AND COPYRIGHT

Copyright (C) 2012 Alex

This program is free software; you can redistribute it and/or modify it
under the terms of either: the GNU General Public License as published
by the Free Software Foundation; or the Artistic License.

See http://dev.perl.org/licenses/ for more information.

