Skip to content

Instantly share code, notes, and snippets.

@iso100
Last active December 18, 2015 12:39
Show Gist options
  • Save iso100/5784314 to your computer and use it in GitHub Desktop.
Save iso100/5784314 to your computer and use it in GitHub Desktop.
Mapinfo.com redirects
php_value memory_limit 256M
php_value error_reporting 8191
php_value upload_max_filesize 20M
php_value post_max_size 20M
php_value max_execution_time 200
php_value max_input_time 200
php_value suhosin.memory_limit 256M
php_value suhosin.post.max_vars 6000
php_value suhosin.request.max_vars 6000
php_value max_input_vars 2000
<IfModule mod_php5.c>
<IfModule mod_headers.c>
<FilesMatch "\.(ico|flv|jpg|jpeg|png|gif|swf|mpeg|wav|mp3|wma|mpg|css|js)$">
Header set Cache-Control "no-cache"
</FilesMatch>
</IfModule>
</IfModule>
RewriteEngine On
RewriteCond %{HTTP_HOST} !^www\.mapinfo\.com$ [NC]
RewriteRule ^(.*)$ http://www.mapinfo.com/$1 [L,R=301]
# RewriteCond %{HTTP_HOST} !^$
# RewriteCond %{HTTP_HOST} ^mapinfo.com [NC]
# RewriteRule ^ http://www.%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
# ###################################################################### #
# #
# ###################################################################### #
RewriteRule ^contactus$ http://www.mapinfo.com/contact/ [R=301,L,NC]
RewriteRule ^retail$ http://www.mapinfo.com/industries/retail/ [R=301,L,NC]
RewriteRule ^communications$ http://www.mapinfo.com/industries/telecommunications-gis-solutions/ [R=301,L,NC]
RewriteRule ^government$ http://www.mapinfo.com/industries/government/ [R=301,L,NC]
RewriteRule ^insurance$ http://www.mapinfo.com/industries/insurance-gis-solutions/ [R=301,L,NC]
RewriteRule ^industries$ http://www.pbinsight.com/solutions/by-industry [R=301,L,NC]
# ############## #
# IdeaScope URLs #
# ############## #
RewriteRule ^ideas_for_mapinfo_professional.*$ http://pbinsight.force.com/pbideas/ideaList?c=09a800000009It0&category=MapInfo+Professional [R=301,QSA,L,NC]
RewriteRule ^ideas_for_confirm.*$ http://ideascopeanywhere.com/PBMapinfo/frmSubmitIdea.aspx?product=Confirm$1 [R=301,QSA,L,NC]
# ####################### #
# Catch All Others #
# ####################### #
RewriteCond %{HTTP_HOST} ^reference.mapinfo.com$
RewriteRule ^(.*)$ http://www.pbinsight.com/support/product-documentation/$1 [R=301,L,NC]
#The following rule is to allow www.mapinfo.com/promo links to redirect properly to the www.pbinsight.com/promo directory
RewriteRule ^promo/(.*)$ http://www.pbinsight.com/promo/$1 [L,NC]
# RewriteRule ^(.*)$ http://www.pbinsight.com/welcome/mapinfo/ [R=permanent,L,NC]
# ###################################################################### #
# Redirects for new mapinfo.com site
# ###################################################################### #
RewriteRule ^mapinfo-manager$ http://www.mapinfo.com/product/mapinfo-manager/ [R=301,L,NC]
RewriteRule ^products$ http://www.mapinfo.com [R=301,L,NC,NE]
RewriteRule ^data$ http://www.mapinfo.com/products/data/ [R=301,L,NC]
# ################ New per Adam's request 6/14/2013 ########################## #
RewriteRule ^mapxtreme$ http://www.mapinfo.com/product/mapxtreme-for-net/ [R=301,L,NC]
RewriteRule ^mapbasic$ http://www.mapinfo.com/product/mapinfo-mapbasic/ [R=301,L,NC]
RewriteRule ^easyloader$ http://www.pbinsight.com/support/product-downloads/for/easyloader/ [R=301,L,NC]
RewriteRule ^professional$ http://www.mapinfo.com/product/mapinfo-professional/ [R=301,L,NC]
RewriteRule ^proviewer$ http://www.pbinsight.com/support/product-downloads/for/mapinfo-proviewer/ [R=301,L,NC]
RewriteRule ^publications$ http://www.pbinsight.com/support/product-documentation/ [R=301,L,NC]
RewriteRule ^contact-us$ http://www.mapinfo.com/contact/ [R=301,L,NC]
RewriteRule ^tutorials$ http://www.mapinfo.com/resources/video-tutorials/ [R=301,L,NC]
RewriteRule ^support$ http://www.mapinfo.com/support/ [R=301,L,NC]
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment