Author: dblotsky
Date: Wed Oct 28 01:47:57 2015
New Revision: 1710921

URL: http://svn.apache.org/viewvc?rev=1710921&view=rev
Log:
Fixing up redirect logic a lot. Relying on .htaccess more.

Modified:
    cordova/site/public/.htaccess
    cordova/site/public/404.html
    cordova/site/public/docs/en/edge/guide/platforms/ios/config.html
    cordova/site/public/feed.xml
    cordova/site/public/static/js/404.js

Modified: cordova/site/public/.htaccess
URL: 
http://svn.apache.org/viewvc/cordova/site/public/.htaccess?rev=1710921&r1=1710920&r2=1710921&view=diff
==============================================================================
--- cordova/site/public/.htaccess (original)
+++ cordova/site/public/.htaccess Wed Oct 28 01:47:57 2015
@@ -1,165 +1,199 @@
 ErrorDocument 404 /404.html
 
-# Redirects for old docs pages
+# turn on redirection
 Options +FollowSymLinks
 RewriteEngine on
 
+# only bother applying the below rules for docs pages
+# NOTE:
+#       the leading slash has a '?' before it because
+#       REQUEST_URI doesn't always contain it
 RewriteCond %{REQUEST_URI} ^.*/?docs/.*$
 
-RewriteRule ^.*(/?)docs/([^/]{2,2})/([^/]+)/config_ref_images.md.html$ 
/docs/$2/$3/config_ref/images.html [R=301]
-RewriteRule ^.*(/?)docs/([^/]{2,2})/([^/]+)/config_ref_index.md.html$ 
/docs/$2/$3/config_ref/index.html [R=301]
-RewriteRule 
^.*(/?)docs/([^/]{2,2})/([^/]+)/cordova_accelerometer_accelerometer.md.html$ 
/docs/$2/$3/cordova/accelerometer/accelerometer.html [R=301]
-RewriteRule 
^.*(/?)docs/([^/]{2,2})/([^/]+)/cordova_camera_camera.cleanup.md.html$ 
/docs/$2/$3/cordova/camera/camera.cleanup.html [R=301]
-RewriteRule ^.*(/?)docs/([^/]{2,2})/([^/]+)/cordova_camera_camera.md.html$ 
/docs/$2/$3/cordova/camera/camera.html [R=301]
-RewriteRule ^.*(/?)docs/([^/]{2,2})/([^/]+)/cordova_compass_compass.md.html$ 
/docs/$2/$3/cordova/compass/compass.html [R=301]
-RewriteRule 
^.*(/?)docs/([^/]{2,2})/([^/]+)/cordova_connection_connection.md.html$ 
/docs/$2/$3/cordova/connection/connection.html [R=301]
-RewriteRule ^.*(/?)docs/([^/]{2,2})/([^/]+)/cordova_contacts_contacts.md.html$ 
/docs/$2/$3/cordova/contacts/contacts.html [R=301]
-RewriteRule ^.*(/?)docs/([^/]{2,2})/([^/]+)/cordova_device_device.md.html$ 
/docs/$2/$3/cordova/device/device.html [R=301]
-RewriteRule 
^.*(/?)docs/([^/]{2,2})/([^/]+)/cordova_device_device.model.md.html$ 
/docs/$2/$3/cordova/device/device.model.html [R=301]
-RewriteRule ^.*(/?)docs/([^/]{2,2})/([^/]+)/cordova_events_events.md.html$ 
/docs/$2/$3/cordova/events/events.html [R=301]
-RewriteRule ^.*(/?)docs/([^/]{2,2})/([^/]+)/cordova_file_file.md.html$ 
/docs/$2/$3/cordova/file/file.html [R=301]
-RewriteRule 
^.*(/?)docs/([^/]{2,2})/([^/]+)/cordova_geolocation_geolocation.md.html$ 
/docs/$2/$3/cordova/geolocation/geolocation.html [R=301]
-RewriteRule 
^.*(/?)docs/([^/]{2,2})/([^/]+)/cordova_globalization_globalization.md.html$ 
/docs/$2/$3/cordova/globalization/globalization.html [R=301]
-RewriteRule 
^.*(/?)docs/([^/]{2,2})/([^/]+)/cordova_inappbrowser_inappbrowser.md.html$ 
/docs/$2/$3/cordova/inappbrowser/inappbrowser.html [R=301]
-RewriteRule 
^.*(/?)docs/([^/]{2,2})/([^/]+)/cordova_media_capture_capture.md.html$ 
/docs/$2/$3/cordova/media/capture/capture.html [R=301]
-RewriteRule ^.*(/?)docs/([^/]{2,2})/([^/]+)/cordova_media_media.md.html$ 
/docs/$2/$3/cordova/media/media.html [R=301]
-RewriteRule 
^.*(/?)docs/([^/]{2,2})/([^/]+)/cordova_notification_notification.md.html$ 
/docs/$2/$3/cordova/notification/notification.html [R=301]
-RewriteRule 
^.*(/?)docs/([^/]{2,2})/([^/]+)/cordova_splashscreen_splashscreen.md.html$ 
/docs/$2/$3/cordova/splashscreen/splashscreen.html [R=301]
-RewriteRule ^.*(/?)docs/([^/]{2,2})/([^/]+)/cordova_storage_storage.md.html$ 
/docs/$2/$3/cordova/storage/storage.html [R=301]
-RewriteRule 
^.*(/?)docs/([^/]{2,2})/([^/]+)/guide_appdev_privacy_index.md.html$ 
/docs/$2/$3/guide/appdev/privacy/index.html [R=301]
-RewriteRule 
^.*(/?)docs/([^/]{2,2})/([^/]+)/guide_appdev_whitelist_index.md.html$ 
/docs/$2/$3/guide/appdev/whitelist/index.html [R=301]
-RewriteRule ^.*(/?)docs/([^/]{2,2})/([^/]+)/guide_cli_index.md.html$ 
/docs/$2/$3/guide/cli/index.html [R=301]
-RewriteRule 
^.*(/?)docs/([^/]{2,2})/([^/]+)/guide_hybrid_plugins_index.md.html$ 
/docs/$2/$3/guide/hybrid/plugins/index.html [R=301]
-RewriteRule 
^.*(/?)docs/([^/]{2,2})/([^/]+)/guide_hybrid_webviews_index.md.html$ 
/docs/$2/$3/guide/hybrid/webviews/index.html [R=301]
-RewriteRule ^.*(/?)docs/([^/]{2,2})/([^/]+)/guide_overview_index.md.html$ 
/docs/$2/$3/guide/overview/index.html [R=301]
-RewriteRule 
^.*(/?)docs/([^/]{2,2})/([^/]+)/guide_platforms_android_config.md.html$ 
/docs/$2/$3/guide/platforms/android/config.html [R=301]
-RewriteRule 
^.*(/?)docs/([^/]{2,2})/([^/]+)/guide_platforms_android_index.md.html$ 
/docs/$2/$3/guide/platforms/android/index.html [R=301]
-RewriteRule 
^.*(/?)docs/([^/]{2,2})/([^/]+)/guide_platforms_android_plugin.md.html$ 
/docs/$2/$3/guide/platforms/android/plugin.html [R=301]
-RewriteRule 
^.*(/?)docs/([^/]{2,2})/([^/]+)/guide_platforms_android_tools.md.html$ 
/docs/$2/$3/guide/platforms/android/tools.html [R=301]
-RewriteRule 
^.*(/?)docs/([^/]{2,2})/([^/]+)/guide_platforms_android_upgrading.md.html$ 
/docs/$2/$3/guide/platforms/android/upgrading.html [R=301]
-RewriteRule 
^.*(/?)docs/([^/]{2,2})/([^/]+)/guide_platforms_android_webview.md.html$ 
/docs/$2/$3/guide/platforms/android/webview.html [R=301]
-RewriteRule 
^.*(/?)docs/([^/]{2,2})/([^/]+)/guide_platforms_blackberry10_config.md.html$ 
/docs/$2/$3/guide/platforms/blackberry10/config.html [R=301]
-RewriteRule 
^.*(/?)docs/([^/]{2,2})/([^/]+)/guide_platforms_blackberry10_index.md.html$ 
/docs/$2/$3/guide/platforms/blackberry10/index.html [R=301]
-RewriteRule 
^.*(/?)docs/([^/]{2,2})/([^/]+)/guide_platforms_blackberry10_plugin.md.html$ 
/docs/$2/$3/guide/platforms/blackberry10/plugin.html [R=301]
-RewriteRule 
^.*(/?)docs/([^/]{2,2})/([^/]+)/guide_platforms_blackberry10_tools.md.html$ 
/docs/$2/$3/guide/platforms/blackberry10/tools.html [R=301]
-RewriteRule 
^.*(/?)docs/([^/]{2,2})/([^/]+)/guide_platforms_blackberry10_upgrading.md.html$ 
/docs/$2/$3/guide/platforms/blackberry10/upgrading.html [R=301]
-RewriteRule 
^.*(/?)docs/([^/]{2,2})/([^/]+)/guide_platforms_blackberry_config.md.html$ 
/docs/$2/$3/guide/platforms/blackberry/config.html [R=301]
-RewriteRule 
^.*(/?)docs/([^/]{2,2})/([^/]+)/guide_platforms_blackberry_index.md.html$ 
/docs/$2/$3/guide/platforms/blackberry/index.html [R=301]
-RewriteRule 
^.*(/?)docs/([^/]{2,2})/([^/]+)/guide_platforms_blackberry_plugin.md.html$ 
/docs/$2/$3/guide/platforms/blackberry/plugin.html [R=301]
-RewriteRule 
^.*(/?)docs/([^/]{2,2})/([^/]+)/guide_platforms_blackberry_tools.md.html$ 
/docs/$2/$3/guide/platforms/blackberry/tools.html [R=301]
-RewriteRule 
^.*(/?)docs/([^/]{2,2})/([^/]+)/guide_platforms_blackberry_upgrading.md.html$ 
/docs/$2/$3/guide/platforms/blackberry/upgrading.html [R=301]
-RewriteRule 
^.*(/?)docs/([^/]{2,2})/([^/]+)/guide_platforms_firefoxos_config.md.html$ 
/docs/$2/$3/guide/platforms/firefoxos/config.html [R=301]
-RewriteRule ^.*(/?)docs/([^/]{2,2})/([^/]+)/guide_platforms_index.md.html$ 
/docs/$2/$3/guide/platforms/index.html [R=301]
-RewriteRule 
^.*(/?)docs/([^/]{2,2})/([^/]+)/guide_platforms_ios_config.md.html$ 
/docs/$2/$3/guide/platforms/ios/config.html [R=301]
-RewriteRule ^.*(/?)docs/([^/]{2,2})/([^/]+)/guide_platforms_ios_index.md.html$ 
/docs/$2/$3/guide/platforms/ios/index.html [R=301]
-RewriteRule 
^.*(/?)docs/([^/]{2,2})/([^/]+)/guide_platforms_ios_plugin.md.html$ 
/docs/$2/$3/guide/platforms/ios/plugin.html [R=301]
-RewriteRule ^.*(/?)docs/([^/]{2,2})/([^/]+)/guide_platforms_ios_tools.md.html$ 
/docs/$2/$3/guide/platforms/ios/tools.html [R=301]
-RewriteRule 
^.*(/?)docs/([^/]{2,2})/([^/]+)/guide_platforms_ios_upgrading.md.html$ 
/docs/$2/$3/guide/platforms/ios/upgrading.html [R=301]
-RewriteRule 
^.*(/?)docs/([^/]{2,2})/([^/]+)/guide_platforms_ios_webview.md.html$ 
/docs/$2/$3/guide/platforms/ios/webview.html [R=301]
-RewriteRule 
^.*(/?)docs/([^/]{2,2})/([^/]+)/guide_platforms_tizen_index.md.html$ 
/docs/$2/$3/guide/platforms/tizen/index.html [R=301]
-RewriteRule 
^.*(/?)docs/([^/]{2,2})/([^/]+)/guide_platforms_win8_index.md.html$ 
/docs/$2/$3/guide/platforms/win8/index.html [R=301]
-RewriteRule 
^.*(/?)docs/([^/]{2,2})/([^/]+)/guide_platforms_win8_tools.md.html$ 
/docs/$2/$3/guide/platforms/win8/tools.html [R=301]
-RewriteRule 
^.*(/?)docs/([^/]{2,2})/([^/]+)/guide_platforms_win8_upgrading.md.html$ 
/docs/$2/$3/guide/platforms/win8/upgrading.html [R=301]
-RewriteRule ^.*(/?)docs/([^/]{2,2})/([^/]+)/guide_platforms_wp7_index.md.html$ 
/docs/$2/$3/guide/platforms/wp7/index.html [R=301]
-RewriteRule ^.*(/?)docs/([^/]{2,2})/([^/]+)/guide_platforms_wp8_index.md.html$ 
/docs/$2/$3/guide/platforms/wp8/index.html [R=301]
-RewriteRule 
^.*(/?)docs/([^/]{2,2})/([^/]+)/guide_platforms_wp8_plugin.md.html$ 
/docs/$2/$3/guide/platforms/wp8/plugin.html [R=301]
-RewriteRule ^.*(/?)docs/([^/]{2,2})/([^/]+)/guide_platforms_wp8_tools.md.html$ 
/docs/$2/$3/guide/platforms/wp8/tools.html [R=301]
-RewriteRule 
^.*(/?)docs/([^/]{2,2})/([^/]+)/guide_platforms_wp8_upgrading.md.html$ 
/docs/$2/$3/guide/platforms/wp8/upgrading.html [R=301]
-RewriteRule ^.*(/?)docs/([^/]{2,2})/([^/]+)/plugin_ref_plugman.md.html$ 
/docs/$2/$3/plugin_ref/plugman.html [R=301]
-RewriteRule ^.*(/?)docs/([^/]{2,2})/([^/]+)/plugin_ref_spec.md.html$ 
/docs/$2/$3/plugin_ref/spec.html [R=301]
-RewriteRule 
^.*(/?)docs/([^/]{2,2})/([^/]+)/cordova_plugins_pluginapis.md.html$ 
/docs/$2/$3/cordova/plugins/pluginapis.html [R=301]
-RewriteRule 
^.*(/?)docs/([^/]{2,2})/([^/]+)/cordova_storage_database_database.md.html$ 
/docs/$2/$3/cordova/storage/database/database.html [R=301]
-RewriteRule 
^.*(/?)docs/([^/]{2,2})/([^/]+)/cordova_storage_localstorage_localstorage.md.html$
 /docs/$2/$3/cordova/storage/localstorage/localstorage.html [R=301]
-RewriteRule 
^.*(/?)docs/([^/]{2,2})/([^/]+)/cordova_storage_parameters_display_name.md.html$
 /docs/$2/$3/cordova/storage/parameters/display_name.html [R=301]
-RewriteRule 
^.*(/?)docs/([^/]{2,2})/([^/]+)/cordova_storage_parameters_name.md.html$ 
/docs/$2/$3/cordova/storage/parameters/name.html [R=301]
-RewriteRule 
^.*(/?)docs/([^/]{2,2})/([^/]+)/cordova_storage_parameters_size.md.html$ 
/docs/$2/$3/cordova/storage/parameters/size.html [R=301]
-RewriteRule 
^.*(/?)docs/([^/]{2,2})/([^/]+)/cordova_storage_parameters_version.md.html$ 
/docs/$2/$3/cordova/storage/parameters/version.html [R=301]
-RewriteRule 
^.*(/?)docs/([^/]{2,2})/([^/]+)/cordova_storage_sqlerror_sqlerror.md.html$ 
/docs/$2/$3/cordova/storage/sqlerror/sqlerror.html [R=301]
-RewriteRule 
^.*(/?)docs/([^/]{2,2})/([^/]+)/cordova_storage_sqlresultset_sqlresultset.md.html$
 /docs/$2/$3/cordova/storage/sqlresultset/sqlresultset.html [R=301]
-RewriteRule 
^.*(/?)docs/([^/]{2,2})/([^/]+)/cordova_storage_sqlresultsetrowlist_sqlresultsetrowlist.md.html$
 /docs/$2/$3/cordova/storage/sqlresultsetrowlist/sqlresultsetrowlist.html 
[R=301]
-RewriteRule 
^.*(/?)docs/([^/]{2,2})/([^/]+)/cordova_storage_sqltransaction_sqltransaction.md.html$
 /docs/$2/$3/cordova/storage/sqltransaction/sqltransaction.html [R=301]
-RewriteRule 
^.*(/?)docs/([^/]{2,2})/([^/]+)/cordova_storage_storage.opendatabase.md.html$ 
/docs/$2/$3/cordova/storage/storage.opendatabase.html [R=301]
-RewriteRule 
^.*(/?)docs/([^/]{2,2})/([^/]+)/guide_platforms_amazonfireos_config.md.html$ 
/docs/$2/$3/guide/platforms/amazonfireos/config.html [R=301]
-RewriteRule 
^.*(/?)docs/([^/]{2,2})/([^/]+)/guide_platforms_amazonfireos_index.md.html$ 
/docs/$2/$3/guide/platforms/amazonfireos/index.html [R=301]
-RewriteRule 
^.*(/?)docs/([^/]{2,2})/([^/]+)/guide_platforms_amazonfireos_plugin.md.html$ 
/docs/$2/$3/guide/platforms/amazonfireos/plugin.html [R=301]
-RewriteRule 
^.*(/?)docs/([^/]{2,2})/([^/]+)/guide_platforms_amazonfireos_webview.md.html$ 
/docs/$2/$3/guide/platforms/amazonfireos/webview.html [R=301]
-RewriteRule 
^.*(/?)docs/([^/]{2,2})/([^/]+)/guide_platforms_ubuntu_index.md.html$ 
/docs/$2/$3/guide/platforms/ubuntu/index.html [R=301]
-RewriteRule ^.*(/?)docs/([^/]{2,2})/([^/]+)/guide_support_index.md.html$ 
/docs/$2/$3/guide/support/index.html [R=301]
-RewriteRule ^.*(/?)docs/([^/]{2,2})/([^/]+)/guide_appdev_hooks_index.md.html$ 
/docs/$2/$3/guide/appdev/hooks/index.html [R=301]
-RewriteRule 
^.*(/?)docs/([^/]{2,2})/([^/]+)/guide_appdev_security_index.md.html$ 
/docs/$2/$3/guide/appdev/security/index.html [R=301]
-RewriteRule ^.*(/?)docs/([^/]{2,2})/([^/]+)/guide_next_index.md.html$ 
/docs/$2/$3/guide/next/index.html [R=301]
-RewriteRule 
^.*(/?)docs/([^/]{2,2})/([^/]+)/guide_platforms_android_upgrade.md.html$ 
/docs/$2/$3/guide/platforms/android/upgrade.html [R=301]
-RewriteRule 
^.*(/?)docs/([^/]{2,2})/([^/]+)/guide_platforms_blackberry10_upgrade.md.html$ 
/docs/$2/$3/guide/platforms/blackberry10/upgrade.html [R=301]
-RewriteRule 
^.*(/?)docs/([^/]{2,2})/([^/]+)/guide_platforms_blackberry_upgrade.md.html$ 
/docs/$2/$3/guide/platforms/blackberry/upgrade.html [R=301]
-RewriteRule 
^.*(/?)docs/([^/]{2,2})/([^/]+)/guide_platforms_firefoxos_index.md.html$ 
/docs/$2/$3/guide/platforms/firefoxos/index.html [R=301]
-RewriteRule 
^.*(/?)docs/([^/]{2,2})/([^/]+)/guide_platforms_ios_upgrade.md.html$ 
/docs/$2/$3/guide/platforms/ios/upgrade.html [R=301]
-RewriteRule 
^.*(/?)docs/([^/]{2,2})/([^/]+)/guide_platforms_win8_packaging.md.html$ 
/docs/$2/$3/guide/platforms/win8/packaging.html [R=301]
-RewriteRule 
^.*(/?)docs/([^/]{2,2})/([^/]+)/guide_platforms_win8_plugin.md.html$ 
/docs/$2/$3/guide/platforms/win8/plugin.html [R=301]
-RewriteRule 
^.*(/?)docs/([^/]{2,2})/([^/]+)/guide_platforms_win8_upgrade.md.html$ 
/docs/$2/$3/guide/platforms/win8/upgrade.html [R=301]
-RewriteRule 
^.*(/?)docs/([^/]{2,2})/([^/]+)/guide_platforms_win8_win10-support.md.html$ 
/docs/$2/$3/guide/platforms/win8/win10-support.html [R=301]
-RewriteRule 
^.*(/?)docs/([^/]{2,2})/([^/]+)/guide_platforms_wp8_parallels.md.html$ 
/docs/$2/$3/guide/platforms/wp8/parallels.html [R=301]
-RewriteRule 
^.*(/?)docs/([^/]{2,2})/([^/]+)/guide_platforms_wp8_upgrade.md.html$ 
/docs/$2/$3/guide/platforms/wp8/upgrade.html [R=301]
-RewriteRule 
^.*(/?)docs/([^/]{2,2})/([^/]+)/guide_platforms_wp8_vmware.md.html$ 
/docs/$2/$3/guide/platforms/wp8/vmware.html [R=301]
-RewriteRule 
^.*(/?)docs/([^/]{2,2})/([^/]+)/guide_platforms_wp8_webview.md.html$ 
/docs/$2/$3/guide/platforms/wp8/webview.html [R=301]
-RewriteRule 
^.*(/?)docs/([^/]{2,2})/([^/]+)/platform_plugin_versioning_ref_index.md.html$ 
/docs/$2/$3/platform_plugin_versioning_ref/index.html [R=301]
-RewriteRule 
^.*(/?)docs/([^/]{2,2})/([^/]+)/guide_getting-started_android_index.md.html$ 
/docs/$2/$3/guide/getting-started/android/index.html [R=301]
-RewriteRule 
^.*(/?)docs/([^/]{2,2})/([^/]+)/guide_getting-started_blackberry_index.md.html$ 
/docs/$2/$3/guide/getting-started/blackberry/index.html [R=301]
-RewriteRule 
^.*(/?)docs/([^/]{2,2})/([^/]+)/guide_getting-started_index.md.html$ 
/docs/$2/$3/guide/getting-started/index.html [R=301]
-RewriteRule 
^.*(/?)docs/([^/]{2,2})/([^/]+)/guide_getting-started_ios_index.md.html$ 
/docs/$2/$3/guide/getting-started/ios/index.html [R=301]
-RewriteRule 
^.*(/?)docs/([^/]{2,2})/([^/]+)/guide_getting-started_symbian_index.md.html$ 
/docs/$2/$3/guide/getting-started/symbian/index.html [R=301]
-RewriteRule 
^.*(/?)docs/([^/]{2,2})/([^/]+)/guide_getting-started_webos_index.md.html$ 
/docs/$2/$3/guide/getting-started/webos/index.html [R=301]
-RewriteRule 
^.*(/?)docs/([^/]{2,2})/([^/]+)/guide_getting-started_windows-phone_index.md.html$
 /docs/$2/$3/guide/getting-started/windows-phone/index.html [R=301]
-RewriteRule 
^.*(/?)docs/([^/]{2,2})/([^/]+)/guide_upgrading_blackberry_index.md.html$ 
/docs/$2/$3/guide/upgrading/blackberry/index.html [R=301]
-RewriteRule 
^.*(/?)docs/([^/]{2,2})/([^/]+)/guide_upgrading_webos_index.md.html$ 
/docs/$2/$3/guide/upgrading/webos/index.html [R=301]
-RewriteRule 
^.*(/?)docs/([^/]{2,2})/([^/]+)/phonegap_accelerometer_accelerometer.md.html$ 
/docs/$2/$3/phonegap/accelerometer/accelerometer.html [R=301]
-RewriteRule ^.*(/?)docs/([^/]{2,2})/([^/]+)/phonegap_camera_camera.md.html$ 
/docs/$2/$3/phonegap/camera/camera.html [R=301]
-RewriteRule ^.*(/?)docs/([^/]{2,2})/([^/]+)/phonegap_compass_compass.md.html$ 
/docs/$2/$3/phonegap/compass/compass.html [R=301]
-RewriteRule 
^.*(/?)docs/([^/]{2,2})/([^/]+)/phonegap_connection_connection.md.html$ 
/docs/$2/$3/phonegap/connection/connection.html [R=301]
-RewriteRule 
^.*(/?)docs/([^/]{2,2})/([^/]+)/phonegap_contacts_contacts.md.html$ 
/docs/$2/$3/phonegap/contacts/contacts.html [R=301]
-RewriteRule ^.*(/?)docs/([^/]{2,2})/([^/]+)/phonegap_device_device.md.html$ 
/docs/$2/$3/phonegap/device/device.html [R=301]
-RewriteRule ^.*(/?)docs/([^/]{2,2})/([^/]+)/phonegap_events_events.md.html$ 
/docs/$2/$3/phonegap/events/events.html [R=301]
-RewriteRule ^.*(/?)docs/([^/]{2,2})/([^/]+)/phonegap_file_file.md.html$ 
/docs/$2/$3/phonegap/file/file.html [R=301]
-RewriteRule 
^.*(/?)docs/([^/]{2,2})/([^/]+)/phonegap_geolocation_geolocation.md.html$ 
/docs/$2/$3/phonegap/geolocation/geolocation.html [R=301]
-RewriteRule 
^.*(/?)docs/([^/]{2,2})/([^/]+)/phonegap_media_capture_capture.md.html$ 
/docs/$2/$3/phonegap/media/capture/capture.html [R=301]
-RewriteRule ^.*(/?)docs/([^/]{2,2})/([^/]+)/phonegap_media_media.md.html$ 
/docs/$2/$3/phonegap/media/media.html [R=301]
-RewriteRule 
^.*(/?)docs/([^/]{2,2})/([^/]+)/phonegap_notification_notification.md.html$ 
/docs/$2/$3/phonegap/notification/notification.html [R=301]
-RewriteRule ^.*(/?)docs/([^/]{2,2})/([^/]+)/phonegap_storage_storage.md.html$ 
/docs/$2/$3/phonegap/storage/storage.html [R=301]
-RewriteRule 
^.*(/?)docs/([^/]{2,2})/([^/]+)/guide_getting-started_bada_index.md.html$ 
/docs/$2/$3/guide/getting-started/bada/index.html [R=301]
-RewriteRule 
^.*(/?)docs/([^/]{2,2})/([^/]+)/guide_upgrading_android_index.md.html$ 
/docs/$2/$3/guide/upgrading/android/index.html [R=301]
-RewriteRule 
^.*(/?)docs/([^/]{2,2})/([^/]+)/guide_upgrading_bada_index.md.html$ 
/docs/$2/$3/guide/upgrading/bada/index.html [R=301]
-RewriteRule ^.*(/?)docs/([^/]{2,2})/([^/]+)/guide_upgrading_index.md.html$ 
/docs/$2/$3/guide/upgrading/index.html [R=301]
-RewriteRule ^.*(/?)docs/([^/]{2,2})/([^/]+)/guide_upgrading_ios_index.md.html$ 
/docs/$2/$3/guide/upgrading/ios/index.html [R=301]
-RewriteRule 
^.*(/?)docs/([^/]{2,2})/([^/]+)/guide_upgrading_symbian_index.md.html$ 
/docs/$2/$3/guide/upgrading/symbian/index.html [R=301]
-RewriteRule 
^.*(/?)docs/([^/]{2,2})/([^/]+)/guide_upgrading_windows-phone_index.md.html$ 
/docs/$2/$3/guide/upgrading/windows-phone/index.html [R=301]
-RewriteRule ^.*(/?)docs/([^/]{2,2})/([^/]+)/guide_whitelist_index.md.html$ 
/docs/$2/$3/guide/whitelist/index.html [R=301]
-RewriteRule ^.*(/?)docs/([^/]{2,2})/([^/]+)/guide_command-line_index.md.html$ 
/docs/$2/$3/guide/command-line/index.html [R=301]
-RewriteRule 
^.*(/?)docs/([^/]{2,2})/([^/]+)/guide_cordova-webview_android.md.html$ 
/docs/$2/$3/guide/cordova-webview/android.html [R=301]
-RewriteRule 
^.*(/?)docs/([^/]{2,2})/([^/]+)/guide_cordova-webview_index.md.html$ 
/docs/$2/$3/guide/cordova-webview/index.html [R=301]
-RewriteRule ^.*(/?)docs/([^/]{2,2})/([^/]+)/guide_cordova-webview_ios.md.html$ 
/docs/$2/$3/guide/cordova-webview/ios.html [R=301]
-RewriteRule 
^.*(/?)docs/([^/]{2,2})/([^/]+)/guide_plugin-development_android_index.md.html$ 
/docs/$2/$3/guide/plugin-development/android/index.html [R=301]
-RewriteRule 
^.*(/?)docs/([^/]{2,2})/([^/]+)/guide_plugin-development_bada_index.md.html$ 
/docs/$2/$3/guide/plugin-development/bada/index.html [R=301]
-RewriteRule 
^.*(/?)docs/([^/]{2,2})/([^/]+)/guide_plugin-development_blackberry_index.md.html$
 /docs/$2/$3/guide/plugin-development/blackberry/index.html [R=301]
-RewriteRule 
^.*(/?)docs/([^/]{2,2})/([^/]+)/guide_plugin-development_index.md.html$ 
/docs/$2/$3/guide/plugin-development/index.html [R=301]
-RewriteRule 
^.*(/?)docs/([^/]{2,2})/([^/]+)/guide_plugin-development_ios_index.md.html$ 
/docs/$2/$3/guide/plugin-development/ios/index.html [R=301]
-RewriteRule 
^.*(/?)docs/([^/]{2,2})/([^/]+)/guide_plugin-development_webos_index.md.html$ 
/docs/$2/$3/guide/plugin-development/webos/index.html [R=301]
-RewriteRule 
^.*(/?)docs/([^/]{2,2})/([^/]+)/guide_plugin-development_windows-phone_index.md.html$
 /docs/$2/$3/guide/plugin-development/windows-phone/index.html [R=301]
-RewriteRule 
^.*(/?)docs/([^/]{2,2})/([^/]+)/guide_getting-started_tizen_index.md.html$ 
/docs/$2/$3/guide/getting-started/tizen/index.html [R=301]
-RewriteRule 
^.*(/?)docs/([^/]{2,2})/([^/]+)/guide_plugin-development_tizen_index.md.html$ 
/docs/$2/$3/guide/plugin-development/tizen/index.html [R=301]
-RewriteRule 
^.*(/?)docs/([^/]{2,2})/([^/]+)/guide_upgrading_tizen_index.md.html$ 
/docs/$2/$3/guide/upgrading/tizen/index.html [R=301]
-RewriteRule 
^.*(/?)docs/([^/]{2,2})/([^/]+)/guide_getting-started_windows-8_index.md.html$ 
/docs/$2/$3/guide/getting-started/windows-8/index.html [R=301]
-RewriteRule 
^.*(/?)docs/([^/]{2,2})/([^/]+)/guide_project-settings_index.md.html$ 
/docs/$2/$3/guide/project-settings/index.html [R=301]
-RewriteRule 
^.*(/?)docs/([^/]{2,2})/([^/]+)/guide_project-settings_ios_index.md.html$ 
/docs/$2/$3/guide/project-settings/ios/index.html [R=301]
-RewriteRule 
^.*(/?)docs/([^/]{2,2})/([^/]+)/guide_getting-started_windows-phone-7_index.md.html$
 /docs/$2/$3/guide/getting-started/windows-phone-7/index.html [R=301]
-RewriteRule 
^.*(/?)docs/([^/]{2,2})/([^/]+)/guide_getting-started_windows-phone-8_index.md.html$
 /docs/$2/$3/guide/getting-started/windows-phone-8/index.html [R=301]
-RewriteRule 
^.*(/?)docs/([^/]{2,2})/([^/]+)/guide_project-settings_android_index.md.html$ 
/docs/$2/$3/guide/project-settings/android/index.html [R=301]
-RewriteRule 
^.*(/?)docs/([^/]{2,2})/([^/]+)/guide_project-settings_bada_index.md.html$ 
/docs/$2/$3/guide/project-settings/bada/index.html [R=301]
-RewriteRule 
^.*(/?)docs/([^/]{2,2})/([^/]+)/guide_project-settings_blackberry_index.md.html$
 /docs/$2/$3/guide/project-settings/blackberry/index.html [R=301]
-RewriteRule 
^.*(/?)docs/([^/]{2,2})/([^/]+)/guide_project-settings_firefoxos_index.md.html$ 
/docs/$2/$3/guide/project-settings/firefoxos/index.html [R=301]
-RewriteRule 
^.*(/?)docs/([^/]{2,2})/([^/]+)/guide_project-settings_webos_index.md.html$ 
/docs/$2/$3/guide/project-settings/webos/index.html [R=301]
-RewriteRule 
^.*(/?)docs/([^/]{2,2})/([^/]+)/guide_project-settings_windows8_index.md.html$ 
/docs/$2/$3/guide/project-settings/windows8/index.html [R=301]
-RewriteRule 
^.*(/?)docs/([^/]{2,2})/([^/]+)/guide_project-settings_wp7_index.md.html$ 
/docs/$2/$3/guide/project-settings/wp7/index.html [R=301]
-RewriteRule 
^.*(/?)docs/([^/]{2,2})/([^/]+)/guide_project-settings_wp8_index.md.html$ 
/docs/$2/$3/guide/project-settings/wp8/index.html [R=301]
-RewriteRule 
^.*(/?)docs/([^/]{2,2})/([^/]+)/guide_getting-started_blackberry10_index.md.html$
 /docs/$2/$3/guide/getting-started/blackberry10/index.html [R=301]
-RewriteRule 
^.*(/?)docs/([^/]{2,2})/([^/]+)/guide_plugin-development_blackberry10_index.md.html$
 /docs/$2/$3/guide/plugin-development/blackberry10/index.html [R=301]
-RewriteRule ^.*(/?)docs/([^/]{2,2})/([^/]+)/guide_privacy_index.md.html$ 
/docs/$2/$3/guide/privacy/index.html [R=301]
-RewriteRule 
^.*(/?)docs/([^/]{2,2})/([^/]+)/guide_upgrading_windows-8_index.md.html$ 
/docs/$2/$3/guide/upgrading/windows-8/index.html [R=301]
+# NOTE:
+#       Some of the below redirects are 302s, and some are 301s. 302s are
+#       a lot like aliases. They are used for redirects whose targets change
+#       sometimes. For example:
+#           - /docs/          -> /docs/fr/, /docs/en/, etc.
+#           - /docs/en/       -> /docs/en/edge/, /docs/en/latest/, etc.
+#           - /docs/en/latest -> /docs/en/4.0.0/, /docs/en/5.0.0/, etc.
+#
+#       301s are for PERMANENT redirects. These are used only for mapping old
+#       docs pages to new docs pages. Remember, 301s are PERMANENT. They should
+#       ONLY be used when pages go away.
+
+# 302: /docs/ -> /docs/en/
+RewriteRule ^.*(/?)docs/?$ /docs/en/ [R=302]
+
+# 302: /docs/[lang]/ -> /docs/[lang]/latest
+RewriteRule ^.*(/?)docs/([^/]{2,2})/?$ /docs/$2/latest/ [R=302]
+
+# 302: /docs/[lang]/latest/ -> /docs/[lang]/site.latest_docs_version
+RewriteRule ^.*(/?)docs/([^/]{2,2})/latest/?(.*)$ /docs/$2/5.1.1/$3 [R=302]
+
+# 301: old docs pages -> new docs pages (from www/_data/docs-redirects.yml)
+#
+# NOTE:
+#       the leading slash is optional because sometimes
+#       REQUEST_URI doesn't contain it
+# NOTE:
+#       the first part of the path (i.e. $1) is not used because the new
+#       URI's prefix is known and fixed by us (i.e. baseurl/docs/...)
+
+RewriteRule ^(.*/?)docs/([^/]{2,2})/([^/]+)/config_ref_images.md.html$ 
/docs/$2/$3/config_ref/images.html [R=301]
+RewriteRule ^(.*/?)docs/([^/]{2,2})/([^/]+)/config_ref_index.md.html$ 
/docs/$2/$3/config_ref/index.html [R=301]
+RewriteRule 
^(.*/?)docs/([^/]{2,2})/([^/]+)/cordova_accelerometer_accelerometer.md.html$ 
/docs/$2/$3/cordova/accelerometer/accelerometer.html [R=301]
+RewriteRule 
^(.*/?)docs/([^/]{2,2})/([^/]+)/cordova_camera_camera.cleanup.md.html$ 
/docs/$2/$3/cordova/camera/camera.cleanup.html [R=301]
+RewriteRule ^(.*/?)docs/([^/]{2,2})/([^/]+)/cordova_camera_camera.md.html$ 
/docs/$2/$3/cordova/camera/camera.html [R=301]
+RewriteRule ^(.*/?)docs/([^/]{2,2})/([^/]+)/cordova_compass_compass.md.html$ 
/docs/$2/$3/cordova/compass/compass.html [R=301]
+RewriteRule 
^(.*/?)docs/([^/]{2,2})/([^/]+)/cordova_connection_connection.md.html$ 
/docs/$2/$3/cordova/connection/connection.html [R=301]
+RewriteRule ^(.*/?)docs/([^/]{2,2})/([^/]+)/cordova_contacts_contacts.md.html$ 
/docs/$2/$3/cordova/contacts/contacts.html [R=301]
+RewriteRule ^(.*/?)docs/([^/]{2,2})/([^/]+)/cordova_device_device.md.html$ 
/docs/$2/$3/cordova/device/device.html [R=301]
+RewriteRule 
^(.*/?)docs/([^/]{2,2})/([^/]+)/cordova_device_device.model.md.html$ 
/docs/$2/$3/cordova/device/device.model.html [R=301]
+RewriteRule ^(.*/?)docs/([^/]{2,2})/([^/]+)/cordova_events_events.md.html$ 
/docs/$2/$3/cordova/events/events.html [R=301]
+RewriteRule ^(.*/?)docs/([^/]{2,2})/([^/]+)/cordova_file_file.md.html$ 
/docs/$2/$3/cordova/file/file.html [R=301]
+RewriteRule 
^(.*/?)docs/([^/]{2,2})/([^/]+)/cordova_geolocation_geolocation.md.html$ 
/docs/$2/$3/cordova/geolocation/geolocation.html [R=301]
+RewriteRule 
^(.*/?)docs/([^/]{2,2})/([^/]+)/cordova_globalization_globalization.md.html$ 
/docs/$2/$3/cordova/globalization/globalization.html [R=301]
+RewriteRule 
^(.*/?)docs/([^/]{2,2})/([^/]+)/cordova_inappbrowser_inappbrowser.md.html$ 
/docs/$2/$3/cordova/inappbrowser/inappbrowser.html [R=301]
+RewriteRule 
^(.*/?)docs/([^/]{2,2})/([^/]+)/cordova_media_capture_capture.md.html$ 
/docs/$2/$3/cordova/media/capture/capture.html [R=301]
+RewriteRule ^(.*/?)docs/([^/]{2,2})/([^/]+)/cordova_media_media.md.html$ 
/docs/$2/$3/cordova/media/media.html [R=301]
+RewriteRule 
^(.*/?)docs/([^/]{2,2})/([^/]+)/cordova_notification_notification.md.html$ 
/docs/$2/$3/cordova/notification/notification.html [R=301]
+RewriteRule 
^(.*/?)docs/([^/]{2,2})/([^/]+)/cordova_splashscreen_splashscreen.md.html$ 
/docs/$2/$3/cordova/splashscreen/splashscreen.html [R=301]
+RewriteRule ^(.*/?)docs/([^/]{2,2})/([^/]+)/cordova_storage_storage.md.html$ 
/docs/$2/$3/cordova/storage/storage.html [R=301]
+RewriteRule 
^(.*/?)docs/([^/]{2,2})/([^/]+)/guide_appdev_privacy_index.md.html$ 
/docs/$2/$3/guide/appdev/privacy/index.html [R=301]
+RewriteRule 
^(.*/?)docs/([^/]{2,2})/([^/]+)/guide_appdev_whitelist_index.md.html$ 
/docs/$2/$3/guide/appdev/whitelist/index.html [R=301]
+RewriteRule ^(.*/?)docs/([^/]{2,2})/([^/]+)/guide_cli_index.md.html$ 
/docs/$2/$3/guide/cli/index.html [R=301]
+RewriteRule 
^(.*/?)docs/([^/]{2,2})/([^/]+)/guide_hybrid_plugins_index.md.html$ 
/docs/$2/$3/guide/hybrid/plugins/index.html [R=301]
+RewriteRule 
^(.*/?)docs/([^/]{2,2})/([^/]+)/guide_hybrid_webviews_index.md.html$ 
/docs/$2/$3/guide/hybrid/webviews/index.html [R=301]
+RewriteRule ^(.*/?)docs/([^/]{2,2})/([^/]+)/guide_overview_index.md.html$ 
/docs/$2/$3/guide/overview/index.html [R=301]
+RewriteRule 
^(.*/?)docs/([^/]{2,2})/([^/]+)/guide_platforms_android_config.md.html$ 
/docs/$2/$3/guide/platforms/android/config.html [R=301]
+RewriteRule 
^(.*/?)docs/([^/]{2,2})/([^/]+)/guide_platforms_android_index.md.html$ 
/docs/$2/$3/guide/platforms/android/index.html [R=301]
+RewriteRule 
^(.*/?)docs/([^/]{2,2})/([^/]+)/guide_platforms_android_plugin.md.html$ 
/docs/$2/$3/guide/platforms/android/plugin.html [R=301]
+RewriteRule 
^(.*/?)docs/([^/]{2,2})/([^/]+)/guide_platforms_android_tools.md.html$ 
/docs/$2/$3/guide/platforms/android/tools.html [R=301]
+RewriteRule 
^(.*/?)docs/([^/]{2,2})/([^/]+)/guide_platforms_android_upgrading.md.html$ 
/docs/$2/$3/guide/platforms/android/upgrading.html [R=301]
+RewriteRule 
^(.*/?)docs/([^/]{2,2})/([^/]+)/guide_platforms_android_webview.md.html$ 
/docs/$2/$3/guide/platforms/android/webview.html [R=301]
+RewriteRule 
^(.*/?)docs/([^/]{2,2})/([^/]+)/guide_platforms_blackberry10_config.md.html$ 
/docs/$2/$3/guide/platforms/blackberry10/config.html [R=301]
+RewriteRule 
^(.*/?)docs/([^/]{2,2})/([^/]+)/guide_platforms_blackberry10_index.md.html$ 
/docs/$2/$3/guide/platforms/blackberry10/index.html [R=301]
+RewriteRule 
^(.*/?)docs/([^/]{2,2})/([^/]+)/guide_platforms_blackberry10_plugin.md.html$ 
/docs/$2/$3/guide/platforms/blackberry10/plugin.html [R=301]
+RewriteRule 
^(.*/?)docs/([^/]{2,2})/([^/]+)/guide_platforms_blackberry10_tools.md.html$ 
/docs/$2/$3/guide/platforms/blackberry10/tools.html [R=301]
+RewriteRule 
^(.*/?)docs/([^/]{2,2})/([^/]+)/guide_platforms_blackberry10_upgrading.md.html$ 
/docs/$2/$3/guide/platforms/blackberry10/upgrading.html [R=301]
+RewriteRule 
^(.*/?)docs/([^/]{2,2})/([^/]+)/guide_platforms_blackberry_config.md.html$ 
/docs/$2/$3/guide/platforms/blackberry/config.html [R=301]
+RewriteRule 
^(.*/?)docs/([^/]{2,2})/([^/]+)/guide_platforms_blackberry_index.md.html$ 
/docs/$2/$3/guide/platforms/blackberry/index.html [R=301]
+RewriteRule 
^(.*/?)docs/([^/]{2,2})/([^/]+)/guide_platforms_blackberry_plugin.md.html$ 
/docs/$2/$3/guide/platforms/blackberry/plugin.html [R=301]
+RewriteRule 
^(.*/?)docs/([^/]{2,2})/([^/]+)/guide_platforms_blackberry_tools.md.html$ 
/docs/$2/$3/guide/platforms/blackberry/tools.html [R=301]
+RewriteRule 
^(.*/?)docs/([^/]{2,2})/([^/]+)/guide_platforms_blackberry_upgrading.md.html$ 
/docs/$2/$3/guide/platforms/blackberry/upgrading.html [R=301]
+RewriteRule 
^(.*/?)docs/([^/]{2,2})/([^/]+)/guide_platforms_firefoxos_config.md.html$ 
/docs/$2/$3/guide/platforms/firefoxos/config.html [R=301]
+RewriteRule ^(.*/?)docs/([^/]{2,2})/([^/]+)/guide_platforms_index.md.html$ 
/docs/$2/$3/guide/platforms/index.html [R=301]
+RewriteRule 
^(.*/?)docs/([^/]{2,2})/([^/]+)/guide_platforms_ios_config.md.html$ 
/docs/$2/$3/guide/platforms/ios/config.html [R=301]
+RewriteRule ^(.*/?)docs/([^/]{2,2})/([^/]+)/guide_platforms_ios_index.md.html$ 
/docs/$2/$3/guide/platforms/ios/index.html [R=301]
+RewriteRule 
^(.*/?)docs/([^/]{2,2})/([^/]+)/guide_platforms_ios_plugin.md.html$ 
/docs/$2/$3/guide/platforms/ios/plugin.html [R=301]
+RewriteRule ^(.*/?)docs/([^/]{2,2})/([^/]+)/guide_platforms_ios_tools.md.html$ 
/docs/$2/$3/guide/platforms/ios/tools.html [R=301]
+RewriteRule 
^(.*/?)docs/([^/]{2,2})/([^/]+)/guide_platforms_ios_upgrading.md.html$ 
/docs/$2/$3/guide/platforms/ios/upgrading.html [R=301]
+RewriteRule 
^(.*/?)docs/([^/]{2,2})/([^/]+)/guide_platforms_ios_webview.md.html$ 
/docs/$2/$3/guide/platforms/ios/webview.html [R=301]
+RewriteRule 
^(.*/?)docs/([^/]{2,2})/([^/]+)/guide_platforms_tizen_index.md.html$ 
/docs/$2/$3/guide/platforms/tizen/index.html [R=301]
+RewriteRule 
^(.*/?)docs/([^/]{2,2})/([^/]+)/guide_platforms_win8_index.md.html$ 
/docs/$2/$3/guide/platforms/win8/index.html [R=301]
+RewriteRule 
^(.*/?)docs/([^/]{2,2})/([^/]+)/guide_platforms_win8_tools.md.html$ 
/docs/$2/$3/guide/platforms/win8/tools.html [R=301]
+RewriteRule 
^(.*/?)docs/([^/]{2,2})/([^/]+)/guide_platforms_win8_upgrading.md.html$ 
/docs/$2/$3/guide/platforms/win8/upgrading.html [R=301]
+RewriteRule ^(.*/?)docs/([^/]{2,2})/([^/]+)/guide_platforms_wp7_index.md.html$ 
/docs/$2/$3/guide/platforms/wp7/index.html [R=301]
+RewriteRule ^(.*/?)docs/([^/]{2,2})/([^/]+)/guide_platforms_wp8_index.md.html$ 
/docs/$2/$3/guide/platforms/wp8/index.html [R=301]
+RewriteRule 
^(.*/?)docs/([^/]{2,2})/([^/]+)/guide_platforms_wp8_plugin.md.html$ 
/docs/$2/$3/guide/platforms/wp8/plugin.html [R=301]
+RewriteRule ^(.*/?)docs/([^/]{2,2})/([^/]+)/guide_platforms_wp8_tools.md.html$ 
/docs/$2/$3/guide/platforms/wp8/tools.html [R=301]
+RewriteRule 
^(.*/?)docs/([^/]{2,2})/([^/]+)/guide_platforms_wp8_upgrading.md.html$ 
/docs/$2/$3/guide/platforms/wp8/upgrading.html [R=301]
+RewriteRule ^(.*/?)docs/([^/]{2,2})/([^/]+)/plugin_ref_plugman.md.html$ 
/docs/$2/$3/plugin_ref/plugman.html [R=301]
+RewriteRule ^(.*/?)docs/([^/]{2,2})/([^/]+)/plugin_ref_spec.md.html$ 
/docs/$2/$3/plugin_ref/spec.html [R=301]
+RewriteRule 
^(.*/?)docs/([^/]{2,2})/([^/]+)/cordova_plugins_pluginapis.md.html$ 
/docs/$2/$3/cordova/plugins/pluginapis.html [R=301]
+RewriteRule 
^(.*/?)docs/([^/]{2,2})/([^/]+)/cordova_storage_database_database.md.html$ 
/docs/$2/$3/cordova/storage/database/database.html [R=301]
+RewriteRule 
^(.*/?)docs/([^/]{2,2})/([^/]+)/cordova_storage_localstorage_localstorage.md.html$
 /docs/$2/$3/cordova/storage/localstorage/localstorage.html [R=301]
+RewriteRule 
^(.*/?)docs/([^/]{2,2})/([^/]+)/cordova_storage_parameters_display_name.md.html$
 /docs/$2/$3/cordova/storage/parameters/display_name.html [R=301]
+RewriteRule 
^(.*/?)docs/([^/]{2,2})/([^/]+)/cordova_storage_parameters_name.md.html$ 
/docs/$2/$3/cordova/storage/parameters/name.html [R=301]
+RewriteRule 
^(.*/?)docs/([^/]{2,2})/([^/]+)/cordova_storage_parameters_size.md.html$ 
/docs/$2/$3/cordova/storage/parameters/size.html [R=301]
+RewriteRule 
^(.*/?)docs/([^/]{2,2})/([^/]+)/cordova_storage_parameters_version.md.html$ 
/docs/$2/$3/cordova/storage/parameters/version.html [R=301]
+RewriteRule 
^(.*/?)docs/([^/]{2,2})/([^/]+)/cordova_storage_sqlerror_sqlerror.md.html$ 
/docs/$2/$3/cordova/storage/sqlerror/sqlerror.html [R=301]
+RewriteRule 
^(.*/?)docs/([^/]{2,2})/([^/]+)/cordova_storage_sqlresultset_sqlresultset.md.html$
 /docs/$2/$3/cordova/storage/sqlresultset/sqlresultset.html [R=301]
+RewriteRule 
^(.*/?)docs/([^/]{2,2})/([^/]+)/cordova_storage_sqlresultsetrowlist_sqlresultsetrowlist.md.html$
 /docs/$2/$3/cordova/storage/sqlresultsetrowlist/sqlresultsetrowlist.html 
[R=301]
+RewriteRule 
^(.*/?)docs/([^/]{2,2})/([^/]+)/cordova_storage_sqltransaction_sqltransaction.md.html$
 /docs/$2/$3/cordova/storage/sqltransaction/sqltransaction.html [R=301]
+RewriteRule 
^(.*/?)docs/([^/]{2,2})/([^/]+)/cordova_storage_storage.opendatabase.md.html$ 
/docs/$2/$3/cordova/storage/storage.opendatabase.html [R=301]
+RewriteRule 
^(.*/?)docs/([^/]{2,2})/([^/]+)/guide_platforms_amazonfireos_config.md.html$ 
/docs/$2/$3/guide/platforms/amazonfireos/config.html [R=301]
+RewriteRule 
^(.*/?)docs/([^/]{2,2})/([^/]+)/guide_platforms_amazonfireos_index.md.html$ 
/docs/$2/$3/guide/platforms/amazonfireos/index.html [R=301]
+RewriteRule 
^(.*/?)docs/([^/]{2,2})/([^/]+)/guide_platforms_amazonfireos_plugin.md.html$ 
/docs/$2/$3/guide/platforms/amazonfireos/plugin.html [R=301]
+RewriteRule 
^(.*/?)docs/([^/]{2,2})/([^/]+)/guide_platforms_amazonfireos_webview.md.html$ 
/docs/$2/$3/guide/platforms/amazonfireos/webview.html [R=301]
+RewriteRule 
^(.*/?)docs/([^/]{2,2})/([^/]+)/guide_platforms_ubuntu_index.md.html$ 
/docs/$2/$3/guide/platforms/ubuntu/index.html [R=301]
+RewriteRule ^(.*/?)docs/([^/]{2,2})/([^/]+)/guide_support_index.md.html$ 
/docs/$2/$3/guide/support/index.html [R=301]
+RewriteRule ^(.*/?)docs/([^/]{2,2})/([^/]+)/guide_appdev_hooks_index.md.html$ 
/docs/$2/$3/guide/appdev/hooks/index.html [R=301]
+RewriteRule 
^(.*/?)docs/([^/]{2,2})/([^/]+)/guide_appdev_security_index.md.html$ 
/docs/$2/$3/guide/appdev/security/index.html [R=301]
+RewriteRule ^(.*/?)docs/([^/]{2,2})/([^/]+)/guide_next_index.md.html$ 
/docs/$2/$3/guide/next/index.html [R=301]
+RewriteRule 
^(.*/?)docs/([^/]{2,2})/([^/]+)/guide_platforms_android_upgrade.md.html$ 
/docs/$2/$3/guide/platforms/android/upgrade.html [R=301]
+RewriteRule 
^(.*/?)docs/([^/]{2,2})/([^/]+)/guide_platforms_blackberry10_upgrade.md.html$ 
/docs/$2/$3/guide/platforms/blackberry10/upgrade.html [R=301]
+RewriteRule 
^(.*/?)docs/([^/]{2,2})/([^/]+)/guide_platforms_blackberry_upgrade.md.html$ 
/docs/$2/$3/guide/platforms/blackberry/upgrade.html [R=301]
+RewriteRule 
^(.*/?)docs/([^/]{2,2})/([^/]+)/guide_platforms_firefoxos_index.md.html$ 
/docs/$2/$3/guide/platforms/firefoxos/index.html [R=301]
+RewriteRule 
^(.*/?)docs/([^/]{2,2})/([^/]+)/guide_platforms_ios_upgrade.md.html$ 
/docs/$2/$3/guide/platforms/ios/upgrade.html [R=301]
+RewriteRule 
^(.*/?)docs/([^/]{2,2})/([^/]+)/guide_platforms_win8_packaging.md.html$ 
/docs/$2/$3/guide/platforms/win8/packaging.html [R=301]
+RewriteRule 
^(.*/?)docs/([^/]{2,2})/([^/]+)/guide_platforms_win8_plugin.md.html$ 
/docs/$2/$3/guide/platforms/win8/plugin.html [R=301]
+RewriteRule 
^(.*/?)docs/([^/]{2,2})/([^/]+)/guide_platforms_win8_upgrade.md.html$ 
/docs/$2/$3/guide/platforms/win8/upgrade.html [R=301]
+RewriteRule 
^(.*/?)docs/([^/]{2,2})/([^/]+)/guide_platforms_win8_win10-support.md.html$ 
/docs/$2/$3/guide/platforms/win8/win10-support.html [R=301]
+RewriteRule 
^(.*/?)docs/([^/]{2,2})/([^/]+)/guide_platforms_wp8_parallels.md.html$ 
/docs/$2/$3/guide/platforms/wp8/parallels.html [R=301]
+RewriteRule 
^(.*/?)docs/([^/]{2,2})/([^/]+)/guide_platforms_wp8_upgrade.md.html$ 
/docs/$2/$3/guide/platforms/wp8/upgrade.html [R=301]
+RewriteRule 
^(.*/?)docs/([^/]{2,2})/([^/]+)/guide_platforms_wp8_vmware.md.html$ 
/docs/$2/$3/guide/platforms/wp8/vmware.html [R=301]
+RewriteRule 
^(.*/?)docs/([^/]{2,2})/([^/]+)/guide_platforms_wp8_webview.md.html$ 
/docs/$2/$3/guide/platforms/wp8/webview.html [R=301]
+RewriteRule 
^(.*/?)docs/([^/]{2,2})/([^/]+)/platform_plugin_versioning_ref_index.md.html$ 
/docs/$2/$3/platform_plugin_versioning_ref/index.html [R=301]
+RewriteRule 
^(.*/?)docs/([^/]{2,2})/([^/]+)/guide_getting-started_android_index.md.html$ 
/docs/$2/$3/guide/getting-started/android/index.html [R=301]
+RewriteRule 
^(.*/?)docs/([^/]{2,2})/([^/]+)/guide_getting-started_blackberry_index.md.html$ 
/docs/$2/$3/guide/getting-started/blackberry/index.html [R=301]
+RewriteRule 
^(.*/?)docs/([^/]{2,2})/([^/]+)/guide_getting-started_index.md.html$ 
/docs/$2/$3/guide/getting-started/index.html [R=301]
+RewriteRule 
^(.*/?)docs/([^/]{2,2})/([^/]+)/guide_getting-started_ios_index.md.html$ 
/docs/$2/$3/guide/getting-started/ios/index.html [R=301]
+RewriteRule 
^(.*/?)docs/([^/]{2,2})/([^/]+)/guide_getting-started_symbian_index.md.html$ 
/docs/$2/$3/guide/getting-started/symbian/index.html [R=301]
+RewriteRule 
^(.*/?)docs/([^/]{2,2})/([^/]+)/guide_getting-started_webos_index.md.html$ 
/docs/$2/$3/guide/getting-started/webos/index.html [R=301]
+RewriteRule 
^(.*/?)docs/([^/]{2,2})/([^/]+)/guide_getting-started_windows-phone_index.md.html$
 /docs/$2/$3/guide/getting-started/windows-phone/index.html [R=301]
+RewriteRule 
^(.*/?)docs/([^/]{2,2})/([^/]+)/guide_upgrading_blackberry_index.md.html$ 
/docs/$2/$3/guide/upgrading/blackberry/index.html [R=301]
+RewriteRule 
^(.*/?)docs/([^/]{2,2})/([^/]+)/guide_upgrading_webos_index.md.html$ 
/docs/$2/$3/guide/upgrading/webos/index.html [R=301]
+RewriteRule 
^(.*/?)docs/([^/]{2,2})/([^/]+)/phonegap_accelerometer_accelerometer.md.html$ 
/docs/$2/$3/phonegap/accelerometer/accelerometer.html [R=301]
+RewriteRule ^(.*/?)docs/([^/]{2,2})/([^/]+)/phonegap_camera_camera.md.html$ 
/docs/$2/$3/phonegap/camera/camera.html [R=301]
+RewriteRule ^(.*/?)docs/([^/]{2,2})/([^/]+)/phonegap_compass_compass.md.html$ 
/docs/$2/$3/phonegap/compass/compass.html [R=301]
+RewriteRule 
^(.*/?)docs/([^/]{2,2})/([^/]+)/phonegap_connection_connection.md.html$ 
/docs/$2/$3/phonegap/connection/connection.html [R=301]
+RewriteRule 
^(.*/?)docs/([^/]{2,2})/([^/]+)/phonegap_contacts_contacts.md.html$ 
/docs/$2/$3/phonegap/contacts/contacts.html [R=301]
+RewriteRule ^(.*/?)docs/([^/]{2,2})/([^/]+)/phonegap_device_device.md.html$ 
/docs/$2/$3/phonegap/device/device.html [R=301]
+RewriteRule ^(.*/?)docs/([^/]{2,2})/([^/]+)/phonegap_events_events.md.html$ 
/docs/$2/$3/phonegap/events/events.html [R=301]
+RewriteRule ^(.*/?)docs/([^/]{2,2})/([^/]+)/phonegap_file_file.md.html$ 
/docs/$2/$3/phonegap/file/file.html [R=301]
+RewriteRule 
^(.*/?)docs/([^/]{2,2})/([^/]+)/phonegap_geolocation_geolocation.md.html$ 
/docs/$2/$3/phonegap/geolocation/geolocation.html [R=301]
+RewriteRule 
^(.*/?)docs/([^/]{2,2})/([^/]+)/phonegap_media_capture_capture.md.html$ 
/docs/$2/$3/phonegap/media/capture/capture.html [R=301]
+RewriteRule ^(.*/?)docs/([^/]{2,2})/([^/]+)/phonegap_media_media.md.html$ 
/docs/$2/$3/phonegap/media/media.html [R=301]
+RewriteRule 
^(.*/?)docs/([^/]{2,2})/([^/]+)/phonegap_notification_notification.md.html$ 
/docs/$2/$3/phonegap/notification/notification.html [R=301]
+RewriteRule ^(.*/?)docs/([^/]{2,2})/([^/]+)/phonegap_storage_storage.md.html$ 
/docs/$2/$3/phonegap/storage/storage.html [R=301]
+RewriteRule 
^(.*/?)docs/([^/]{2,2})/([^/]+)/guide_getting-started_bada_index.md.html$ 
/docs/$2/$3/guide/getting-started/bada/index.html [R=301]
+RewriteRule 
^(.*/?)docs/([^/]{2,2})/([^/]+)/guide_upgrading_android_index.md.html$ 
/docs/$2/$3/guide/upgrading/android/index.html [R=301]
+RewriteRule 
^(.*/?)docs/([^/]{2,2})/([^/]+)/guide_upgrading_bada_index.md.html$ 
/docs/$2/$3/guide/upgrading/bada/index.html [R=301]
+RewriteRule ^(.*/?)docs/([^/]{2,2})/([^/]+)/guide_upgrading_index.md.html$ 
/docs/$2/$3/guide/upgrading/index.html [R=301]
+RewriteRule ^(.*/?)docs/([^/]{2,2})/([^/]+)/guide_upgrading_ios_index.md.html$ 
/docs/$2/$3/guide/upgrading/ios/index.html [R=301]
+RewriteRule 
^(.*/?)docs/([^/]{2,2})/([^/]+)/guide_upgrading_symbian_index.md.html$ 
/docs/$2/$3/guide/upgrading/symbian/index.html [R=301]
+RewriteRule 
^(.*/?)docs/([^/]{2,2})/([^/]+)/guide_upgrading_windows-phone_index.md.html$ 
/docs/$2/$3/guide/upgrading/windows-phone/index.html [R=301]
+RewriteRule ^(.*/?)docs/([^/]{2,2})/([^/]+)/guide_whitelist_index.md.html$ 
/docs/$2/$3/guide/whitelist/index.html [R=301]
+RewriteRule ^(.*/?)docs/([^/]{2,2})/([^/]+)/guide_command-line_index.md.html$ 
/docs/$2/$3/guide/command-line/index.html [R=301]
+RewriteRule 
^(.*/?)docs/([^/]{2,2})/([^/]+)/guide_cordova-webview_android.md.html$ 
/docs/$2/$3/guide/cordova-webview/android.html [R=301]
+RewriteRule 
^(.*/?)docs/([^/]{2,2})/([^/]+)/guide_cordova-webview_index.md.html$ 
/docs/$2/$3/guide/cordova-webview/index.html [R=301]
+RewriteRule ^(.*/?)docs/([^/]{2,2})/([^/]+)/guide_cordova-webview_ios.md.html$ 
/docs/$2/$3/guide/cordova-webview/ios.html [R=301]
+RewriteRule 
^(.*/?)docs/([^/]{2,2})/([^/]+)/guide_plugin-development_android_index.md.html$ 
/docs/$2/$3/guide/plugin-development/android/index.html [R=301]
+RewriteRule 
^(.*/?)docs/([^/]{2,2})/([^/]+)/guide_plugin-development_bada_index.md.html$ 
/docs/$2/$3/guide/plugin-development/bada/index.html [R=301]
+RewriteRule 
^(.*/?)docs/([^/]{2,2})/([^/]+)/guide_plugin-development_blackberry_index.md.html$
 /docs/$2/$3/guide/plugin-development/blackberry/index.html [R=301]
+RewriteRule 
^(.*/?)docs/([^/]{2,2})/([^/]+)/guide_plugin-development_index.md.html$ 
/docs/$2/$3/guide/plugin-development/index.html [R=301]
+RewriteRule 
^(.*/?)docs/([^/]{2,2})/([^/]+)/guide_plugin-development_ios_index.md.html$ 
/docs/$2/$3/guide/plugin-development/ios/index.html [R=301]
+RewriteRule 
^(.*/?)docs/([^/]{2,2})/([^/]+)/guide_plugin-development_webos_index.md.html$ 
/docs/$2/$3/guide/plugin-development/webos/index.html [R=301]
+RewriteRule 
^(.*/?)docs/([^/]{2,2})/([^/]+)/guide_plugin-development_windows-phone_index.md.html$
 /docs/$2/$3/guide/plugin-development/windows-phone/index.html [R=301]
+RewriteRule 
^(.*/?)docs/([^/]{2,2})/([^/]+)/guide_getting-started_tizen_index.md.html$ 
/docs/$2/$3/guide/getting-started/tizen/index.html [R=301]
+RewriteRule 
^(.*/?)docs/([^/]{2,2})/([^/]+)/guide_plugin-development_tizen_index.md.html$ 
/docs/$2/$3/guide/plugin-development/tizen/index.html [R=301]
+RewriteRule 
^(.*/?)docs/([^/]{2,2})/([^/]+)/guide_upgrading_tizen_index.md.html$ 
/docs/$2/$3/guide/upgrading/tizen/index.html [R=301]
+RewriteRule 
^(.*/?)docs/([^/]{2,2})/([^/]+)/guide_getting-started_windows-8_index.md.html$ 
/docs/$2/$3/guide/getting-started/windows-8/index.html [R=301]
+RewriteRule 
^(.*/?)docs/([^/]{2,2})/([^/]+)/guide_project-settings_index.md.html$ 
/docs/$2/$3/guide/project-settings/index.html [R=301]
+RewriteRule 
^(.*/?)docs/([^/]{2,2})/([^/]+)/guide_project-settings_ios_index.md.html$ 
/docs/$2/$3/guide/project-settings/ios/index.html [R=301]
+RewriteRule 
^(.*/?)docs/([^/]{2,2})/([^/]+)/guide_getting-started_windows-phone-7_index.md.html$
 /docs/$2/$3/guide/getting-started/windows-phone-7/index.html [R=301]
+RewriteRule 
^(.*/?)docs/([^/]{2,2})/([^/]+)/guide_getting-started_windows-phone-8_index.md.html$
 /docs/$2/$3/guide/getting-started/windows-phone-8/index.html [R=301]
+RewriteRule 
^(.*/?)docs/([^/]{2,2})/([^/]+)/guide_project-settings_android_index.md.html$ 
/docs/$2/$3/guide/project-settings/android/index.html [R=301]
+RewriteRule 
^(.*/?)docs/([^/]{2,2})/([^/]+)/guide_project-settings_bada_index.md.html$ 
/docs/$2/$3/guide/project-settings/bada/index.html [R=301]
+RewriteRule 
^(.*/?)docs/([^/]{2,2})/([^/]+)/guide_project-settings_blackberry_index.md.html$
 /docs/$2/$3/guide/project-settings/blackberry/index.html [R=301]
+RewriteRule 
^(.*/?)docs/([^/]{2,2})/([^/]+)/guide_project-settings_firefoxos_index.md.html$ 
/docs/$2/$3/guide/project-settings/firefoxos/index.html [R=301]
+RewriteRule 
^(.*/?)docs/([^/]{2,2})/([^/]+)/guide_project-settings_webos_index.md.html$ 
/docs/$2/$3/guide/project-settings/webos/index.html [R=301]
+RewriteRule 
^(.*/?)docs/([^/]{2,2})/([^/]+)/guide_project-settings_windows8_index.md.html$ 
/docs/$2/$3/guide/project-settings/windows8/index.html [R=301]
+RewriteRule 
^(.*/?)docs/([^/]{2,2})/([^/]+)/guide_project-settings_wp7_index.md.html$ 
/docs/$2/$3/guide/project-settings/wp7/index.html [R=301]
+RewriteRule 
^(.*/?)docs/([^/]{2,2})/([^/]+)/guide_project-settings_wp8_index.md.html$ 
/docs/$2/$3/guide/project-settings/wp8/index.html [R=301]
+RewriteRule 
^(.*/?)docs/([^/]{2,2})/([^/]+)/guide_getting-started_blackberry10_index.md.html$
 /docs/$2/$3/guide/getting-started/blackberry10/index.html [R=301]
+RewriteRule 
^(.*/?)docs/([^/]{2,2})/([^/]+)/guide_plugin-development_blackberry10_index.md.html$
 /docs/$2/$3/guide/plugin-development/blackberry10/index.html [R=301]
+RewriteRule ^(.*/?)docs/([^/]{2,2})/([^/]+)/guide_privacy_index.md.html$ 
/docs/$2/$3/guide/privacy/index.html [R=301]
+RewriteRule 
^(.*/?)docs/([^/]{2,2})/([^/]+)/guide_upgrading_windows-8_index.md.html$ 
/docs/$2/$3/guide/upgrading/windows-8/index.html [R=301]

Modified: cordova/site/public/404.html
URL: 
http://svn.apache.org/viewvc/cordova/site/public/404.html?rev=1710921&r1=1710920&r2=1710921&view=diff
==============================================================================
--- cordova/site/public/404.html (original)
+++ cordova/site/public/404.html Wed Oct 28 01:47:57 2015
@@ -85,10 +85,13 @@
         <h1>404: Not Found</h1>
     </div>
     <div id="not-found-redirect-alert" class="not-found-redirect">
-        <div class="alert alert-warning" role="alert">It looks like the 
content has moved <a id="new-redirect-link">here</a>.</div>
+        <div class="alert alert-warning" role="alert">It looks like the 
content has <em>moved</em> <a id="new-redirect-link">here</a>.</div>
     </div>
     <div id="no-version-redirect-alert" class="not-found-redirect">
-        <div class="alert alert-warning" role="alert">It looks like this 
version isn't translated. The in-development version is <a 
id="edge-redirect-link">here</a>.</div>
+        <div class="alert alert-warning" role="alert">It looks like this 
version <em>isn't translated</em>. The in-development version is <a 
id="edge-redirect-link">here</a>.</div>
+    </div>
+    <div id="no-page-redirect-alert" class="not-found-redirect">
+        <div class="alert alert-warning" role="alert">It looks like this page 
<em>doesn't exist in this version</em> of the docs. The main page for this 
version is <a id="root-redirect-link">here</a>.</div>
     </div>
 </div>
 <script type="text/javascript" src="/static/js/404.js" defer></script>

Modified: cordova/site/public/docs/en/edge/guide/platforms/ios/config.html
URL: 
http://svn.apache.org/viewvc/cordova/site/public/docs/en/edge/guide/platforms/ios/config.html?rev=1710921&r1=1710920&r2=1710921&view=diff
==============================================================================
--- cordova/site/public/docs/en/edge/guide/platforms/ios/config.html (original)
+++ cordova/site/public/docs/en/edge/guide/platforms/ios/config.html Wed Oct 28 
01:47:57 2015
@@ -1569,6 +1569,18 @@ For more details please refer to Apple&#
 This sets the WebView engine plugin to be used to render the host app. The 
plugin must conform to the CDVWebViewEngineProtocol protocol. The 
&#39;value&#39; here should match the &#39;feature&#39; name of the WebView 
engine plugin that is installed. This preference usually would be set by the 
WebView engine plugin that is installed, automatically.</p>
 <div class="highlight"><pre><code class="language-text" 
data-lang="text">&lt;preference name=&quot;CordovaWebViewEngine&quot; 
value=&quot;CDVUIWebViewEngine&quot; /&gt;
 </code></pre></div></li>
+<li><p><code class="prettyprint">SuppressesLongPressGesture</code> (boolean, 
defaults to <code class="prettyprint">false</code>): Set to <code 
class="prettyprint">true</code> to
+avoid iOS9+ rendering a magnifying glass widget when the user longpresses the 
webview.
+Test your app thoroughly since this may interfere with text selection 
capabilities.</p>
+<div class="highlight"><pre><code class="language-text" 
data-lang="text">&lt;preference name=&quot;SuppressesLongPressGesture&quot; 
value=&quot;true&quot; /&gt;
+</code></pre></div></li>
+<li><p><code class="prettyprint">Suppresses3DTouchGesture</code> (boolean, 
defaults to <code class="prettyprint">false</code>): Set to <code 
class="prettyprint">true</code> to
+avoid 3D Touch capable iOS devices rendering a magnifying glass widget when 
the user
+applies force while longpressing the webview. Test your app thoroughly since 
this
+disables <code class="prettyprint">onclick</code> handlers, but plays nice 
with <code class="prettyprint">ontouchend</code>.
+If this setting is <code class="prettyprint">true</code>, <code 
class="prettyprint">SuppressesLongPressGesture</code> will effectively be <code 
class="prettyprint">true</code> as well.</p>
+<div class="highlight"><pre><code class="language-text" 
data-lang="text">&lt;preference name=&quot;Suppresses3DTouchGesture&quot; 
value=&quot;true&quot; /&gt;
+</code></pre></div></li>
 </ul>
 
 

Modified: cordova/site/public/feed.xml
URL: 
http://svn.apache.org/viewvc/cordova/site/public/feed.xml?rev=1710921&r1=1710920&r2=1710921&view=diff
==============================================================================
--- cordova/site/public/feed.xml (original)
+++ cordova/site/public/feed.xml Wed Oct 28 01:47:57 2015
@@ -5,8 +5,8 @@
     <description>Apache Cordova is a set of device APIs that allow a web 
mobile app developer to access native device function from 
JavaScript.</description>
     <link>https://cordova.apache.org/</link>
     <atom:link href="https://cordova.apache.org/feed.xml"; rel="self" 
type="application/rss+xml"/>
-    <pubDate>Tue, 27 Oct 2015 00:36:26 -0700</pubDate>
-    <lastBuildDate>Tue, 27 Oct 2015 00:36:26 -0700</lastBuildDate>
+    <pubDate>Tue, 27 Oct 2015 17:31:49 -0700</pubDate>
+    <lastBuildDate>Tue, 27 Oct 2015 17:31:49 -0700</lastBuildDate>
     <generator>Jekyll v2.5.3</generator>
     
       <item>

Modified: cordova/site/public/static/js/404.js
URL: 
http://svn.apache.org/viewvc/cordova/site/public/static/js/404.js?rev=1710921&r1=1710920&r2=1710921&view=diff
==============================================================================
--- cordova/site/public/static/js/404.js (original)
+++ cordova/site/public/static/js/404.js Wed Oct 28 01:47:57 2015
@@ -42,10 +42,6 @@
         return DOCS_VERSION_PATTERN.test(url);
     }
 
-    function tryURL(url, responseMap) {
-        $.ajax({url: url, statusCode: responseMap});
-    }
-
     function showNewRedirect(url) {
         $("#new-redirect-link").attr("href", url);
         $("#not-found-redirect-alert").css("display", "block");
@@ -56,6 +52,11 @@
         $("#no-version-redirect-alert").css("display", "block");
     }
 
+    function showRootRedirect(url) {
+        $("#root-redirect-link").attr("href", url);
+        $("#no-page-redirect-alert").css("display", "block");
+    }
+
     function main() {
 
         var url = window.location.href;
@@ -74,20 +75,27 @@
             url: rootURL,
             statusCode: {
 
-                // if the root exists, before offering the new
-                // URL, also check if it exists
+                // if the root exists, check if the new URL exists
                 200: function () {
                     $.ajax({
                         url: newURL,
                         statusCode: {
+
+                            // redirect to the new URL if it exists
                             200: function () {
                                 showNewRedirect(newURL)
+                            },
+
+                            // if the new URL doesn't exist, redirect to root
+                            404: function() {
+                                showRootRedirect(rootURL)
                             }
                         }
                     });
                 },
 
-                // if it doesn't exist, assume that the version is invalid
+                // if root doesn't exist, assume that the version
+                // is invalid and redirect to edge
                 404: function () {
                     showEdgeRedirect(edgeURL)
                 }



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to