Skip to content
Snippets Groups Projects
Commit 2e1ebff9 authored by Michael Fairchild's avatar Michael Fairchild
Browse files

Redirect to the internal home page if on campus

Move redirect rules into .htaccess and redirect to news.unl.edu for internal page
parent 7315ddcc
No related branches found
No related tags found
1 merge request!1Redirect to to the new internal homepage
...@@ -3,6 +3,17 @@ RewriteEngine On ...@@ -3,6 +3,17 @@ RewriteEngine On
RewriteRule ^news/$ http://newsroom.unl.edu/ [R=301] RewriteRule ^news/$ http://newsroom.unl.edu/ [R=301]
RewriteRule ^international/$ http://international.unl.edu/ [R=301] RewriteRule ^international/$ http://international.unl.edu/ [R=301]
RewriteRule ^foodfuelwaterphotocontest/$ http://innovate.unl.edu/photocontest/ [R=301] RewriteRule ^foodfuelwaterphotocontest/$ http://innovate.unl.edu/photocontest/ [R=301]
RewriteCond %{REMOTE_HOST} ^129\.93 [OR]
RewriteCond %{REMOTE_HOST} ^10\.20\. [OR]
RewriteCond %{REMOTE_HOST} ^10\.21\. [OR]
RewriteCond %{REMOTE_HOST} ^65\.123\.(3[2-9]|[4-5][0-9]|6[0-3])\. [OR]
RewriteCond %{REMOTE_HOST} ^64\.39\.(24[0-9]|25[0-5])\. [OR]
RewriteCond %{REMOTE_HOST} ^216\.218\.(20[8-9]|21[0-9]|22[0-3])\.
RewriteCond %{REQUEST_URI} /ucomm/$ [OR]
RewriteCond %{REQUEST_URI} /ucomm/index.shtml$
RewriteRule (.*) http://news.unl.edu/newsrooms/unltoday/ [R=302,L]
#RewriteRule ^depts/.*$ http://directory.unl.edu/departments/academic [R=301] #RewriteRule ^depts/.*$ http://directory.unl.edu/departments/academic [R=301]
## If mobile=no, don't redirect the user specifically request no mobileversion ## If mobile=no, don't redirect the user specifically request no mobileversion
......
<!--#set var="low_bandwidth" value="true" --><!--#if expr='$low_bandwidth = false' --><!--#include virtual="/ucomm/low_bandwidth/index.shtml" --><!--#else --> <!--#set var="low_bandwidth" value="true" --><!--#if expr='$low_bandwidth = false' --><!--#include virtual="/ucomm/low_bandwidth/index.shtml" --><!--#else -->
<!--#if expr="
($REMOTE_ADDR = /^129\.93/) ||
($REMOTE_ADDR = /^10\.20\./) ||
($REMOTE_ADDR = /^10\.21\./) ||
($REMOTE_ADDR = /^65\.123\.(3[2-9]|[4-5][0-9]|6[0-3])\./) ||
($REMOTE_ADDR = /^64\.39\.(24[0-9]|25[0-5])\./) ||
($REMOTE_ADDR = /^216\.218\.(20[8-9]|21[0-9]|22[0-3])\./)
" -->
<!--#if expr='$QUERY_STRING = /^mobile=no/' -->
<!--#include virtual="/ucomm/unltoday/index.shtml?mobile=no" -->
<!--#else -->
<!--#include virtual="/ucomm/unltoday/index.shtml" -->
<!--#endif -->
<!--#else -->
<!--#if expr='$QUERY_STRING = /^mobile=no/' --> <!--#if expr='$QUERY_STRING = /^mobile=no/' -->
<!--#include virtual="/ucomm/splash/index.shtml?mobile=no" --> <!--#include virtual="/ucomm/splash/index.shtml?mobile=no" -->
<!--#else --> <!--#else -->
<!--#include virtual="/ucomm/splash/index.shtml" --> <!--#include virtual="/ucomm/splash/index.shtml" -->
<!--#endif --> <!--#endif -->
<!--#endif --><!--#endif --> <!--#endif -->
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment