Support » Plugin: Redirection » Catch All Redirect Not Working

  • Resolved ruttech

    (@ruttech)


    I’m having issues using a wildcard redirect.

    I have numerous URLs coming into my site that no longer exist when my company went through a rebranding.

    Examples of these URLS:
    – /techniciantraining/
    – /techniciantraining/eti
    – /techniciantraining/cecil

    I have created a regex expression to encapsulate all these URLs.
    Source URL: ^/techniciantraining(.*)$
    Target URL: /college-program/

    Other Regex expressions I tried:
    – /techniciantraining/?(.*)
    – /techniciantraining/(.*)$
    – ^/techniciantraining/(.*)

    I have updated my hosts file to directly test these changes as well as cleared the WP cache. I curled the URL and I’m still getting 404 responses.

    Can anyone tell me what’s going on?

    The page I need help with: [log in to see the link]

Viewing 9 replies - 1 through 9 (of 9 total)
  • I am having the same issue. Thank you for any replies.

    Thread Starter ruttech

    (@ruttech)

    I tried to update the plugin from 2.5 to the newest 2.6.6. It failed:

    Update Failed: <!DOCTYPE html> <!–[if IE 8]> <![endif]–> <!–[if !(IE 8) ]><!–> <!–<![endif]–> LiveSite Pack ‹ Ignitor Labs — WordPress addLoadEvent = function(func){if(typeof jQuery!=”undefined”)jQuery(document).ready(func);else if(typeof wpOnload!=’function’){wpOnload=func;}else{var oldonload=wpOnload;wpOnload=function(){oldonload();func();}}}; var ajaxurl = ‘/wp-admin/admin-ajax.php’, pagenow = ‘toplevel_page_live-site’, typenow = ”, adminpage = ‘toplevel_page_live-site’, thousandsSeparator = ‘,’, decimalPoint = ‘.’, isRtl = 0; img.wp-smiley, img.emoji { display: inline !important; border: none !important; box-shadow: none !important; height: 1em !important; width: 1em !important; margin: 0 .07em !important; vertical-align: -0.1em !important; background: none !important; padding: 0 !important; } <!–[if lte IE 7]> <![endif]–> window._wpemojiSettings = {“baseUrl”:”https:\/\/s.w.org\/images\/core\/emoji\/2.3\/72×72\/”,”ext”:”.png”,”svgUrl”:”https:\/\/s.w.org\/images\/core\/emoji\/2.3\/svg\/”,”svgExt”:”.svg”,”source”:{“concatemoji”:”http:\/\/www.ignitorlabs.com\/wp-includes\/js\/wp-emoji-release.min.js?ver=4.8″}}; !function(a,b,c){function d(a){var b,c,d,e,f=String.fromCharCode;if(!k||!k.fillText)return!1;switch(k.clearRect(0,0,j.width,j.height),k.textBaseline=”top”,k.font=”600 32px Arial”,a){case”flag”:return k.fillText(f(55356,56826,55356,56819),0,0),b=j.toDataURL(),k.clearRect(0,0,j.width,j.height),k.fillText(f(55356,56826,8203,55356,56819),0,0),c=j.toDataURL(),b===c&&(k.clearRect(0,0,j.width,j.height),k.fillText(f(55356,57332,56128,56423,56128,56418,56128,56421,56128,56430,56128,56423,56128,56447),0,0),b=j.toDataURL(),k.clearRect(0,0,j.width,j.height),k.fillText(f(55356,57332,8203,56128,56423,8203,56128,56418,8203,56128,56421,8203,56128,56430,8203,56128,56423,8203,56128,56447),0,0),c=j.toDataURL(),b!==c);case”emoji4″:return k.fillText(f(55358,56794,8205,9794,65039),0,0),d=j.toDataURL(),k.clearRect(0,0,j.width,j.height),k.fillText(f(55358,56794,8203,9794,65039),0,0),e=j.toDataURL(),d!==e}return!1}function e(a){var c=b.createElement(“script”);c.src=a,c.defer=c.type=”text/javascript”,b.getElementsByTagName(“head”)[0].appendChild(c)}var f,g,h,i,j=b.createElement(“canvas”),k=j.getContext&&j.getContext(“2d”);for(i=Array(“flag”,”emoji4″),c.supports={everything:!0,everythingExceptFlag:!0},h=0;h<i.length;h++)c.supports[i[h]]=d(i[h]),c.supports.everything=c.supports.everything&&c.supports[i[h]],”flag”!==i[h]&&(c.supports.everythingExceptFlag=c.supports.everythingExceptFlag&&c.supports[i[h]]);c.supports.everythingExceptFlag=c.supports.everythingExceptFlag&&!c.supports.flag,c.DOMReady=!1,c.readyCallback=function(){c.DOMReady=!0},c.supports.everything||(g=function(){c.readyCallback()},b.addEventListener?(b.addEventListener(“DOMContentLoaded”,g,!1),a.addEventListener(“load”,g,!1)):(a.attachEvent(“onload”,g),b.attachEvent(“onreadystatechange”,function(){“complete”===b.readyState&&c.readyCallback()})),f=c.source||{},f.concatemoji?e(f.concatemoji):f.wpemoji&&f.twemoji&&(e(f.twemoji),e(f.wpemoji)))}(window,document,window._wpemojiSettings); /* <![CDATA[ */ var wpe = {“account”:”ignitor”,”popup_disabled”:””,”user_email”:”jsteenbarger@ignitorlabs.com”,”deployment”:””}; /* ]]> */ /* <![CDATA[ */ var ls_PHPVAR_livesite = {“ls_admin_url”:”http:\/\/www.ignitorlabs.com\/wp-admin\/”,”ls_locale”:”en_US”,”ls_module_nonce”:”36429997aa”,”ls_site_url”:”http:\/\/www.ignitorlabs.com”}; /* ]]> */ /* <![CDATA[ */ var userSettings = {“url”:”\/”,”uid”:”2″,”time”:”1502384675″,”secure”:””};/* ]]> */ #adminmenu #menu-posts-lshowcase div.wp-menu-image img { display: none;} #adminmenu #menu-posts-lshowcase div.wp-menu-image:before { content: “\f180”; } #toplevel_page_monsterinsights_dashboard .wp-menu-image img, #toplevel_page_monsterinsights_settings .wp-menu-image img, #toplevel_page_monsterinsights_network .wp-menu-image img { width: 18px; height: 18px; padding-top: 7px; } jQuery(document).ready(function(){ jQuery(‘#dashboard_right_now a.button’).css(‘display’,’none’); }); if ( window.history.replaceState ) { window.history.replaceState( null, null, document.getElementById( ‘wp-admin-canonical’ ).href + window.location.hash ); } var _wpColorScheme = {“icons”:{“base”:”#82878c”,”focus”:”#00a0d2″,”current”:”#fff”}}; #wpadminbar { display:none; } document.body.className = document.body.className.replace(‘no-js’,’js’); <!–[if lte IE 8]> document.body.className = document.body.className.replace( /(^|\s)(no-)?customize-support(?=\s|$)/, ” ) + ‘ no-customize-support’; <![endif]–> <!–[if gte IE 9]><!–> (function() { var request, b = document.body, c = ‘className’, cs = ‘customize-support’, rcs = new RegExp(‘(^|\\s+)(no-)?’+cs+'(\\s+|$)’); request = true; b[c] = b[c].replace( rcs, ‘ ‘ ); // The customizer requires postMessage and CORS (if the site is cross domain) b[c] += ( window.postMessage && request ? ‘ ‘ : ‘ no-‘ ) + cs; }()); <!–<![endif]–> Skip to main content Skip to toolbar WP Engine WP EngineGeneral SettingsStagingUser PortalSupport System Dashboard DashboardHomeUpdates 8 LiveSite LiveSiteLiveSiteContact FormLiveSite WidgetSettingsBackoffice Posts PostsAll PostsAdd NewCategoriesTags Media MediaLibraryAdd New Pages PagesAll PagesAdd New Comments 0 Projects ProjectsAll ProjectsAdd NewCategoriesTags Popup Maker Popup MakerAll PopupsAdd PopupPopup ThemesExtendSettingsToolsHelp & Support Logos LogosLogosAdd New LogoCategoriesShortcode GeneratorSettings Thrive Lightboxes Thrive LightboxesThrive LightboxesAdd New Awesome Logos Awesome LogosAll SlidesAdd New SlideCategoriesLogos Dashboard Flamingo FlamingoAddress BookInbound Messages Contact ContactContact FormsAdd NewIntegration Appearance AppearanceThemesCustomizeWidgetsMenusBackgroundPopup ThemesBackgroundEditor Plugins 3 Plugins 3Installed PluginsAdd NewEditor Users UsersAll UsersAdd NewYour Profile Tools ToolsAvailable ToolsImportExportQuotesBetter Search ReplaceRedirection Settings SettingsGeneralWritingReadingDiscussionMediaPermalinksBulk Page CreatorDuplicate PostQuote Rotator301 RedirectsSuperb slideshow galleryUsernoiseWPC Pro info SEO 00 notifications SEO 00 notificationsDashboardTitles & MetasSocialXML SitemapsAdvancedToolsSearch ConsoleGo Premium Disabled Cyclone Slider Cyclone SliderCyclone SliderAdd SlideshowSettingsExport/ImportMerge Insights InsightsDashboardSettingsReportsTools Addons Usernoise UsernoiseUsernoiseSettings Divi DiviTheme OptionsTheme CustomizerModule CustomizerRole EditorDivi Library Thrive Dashboard Thrive DashboardThrive DashboardLicense ManagerGeneral SettingsCollapse menu Menu About WordPress About WordPress WordPress.org Documentation Support Forums Feedback Ignitor Labs Visit Site 201 WordPress Update, 15 Plugin Updates, 4 Theme Updates 00 comments awaiting moderation New Post Media Page Project Popup Logo Thrive Lightbox Slideshow Wps logo User SEO Keyword Research AdWords External Google Trends SEO Book SEO Settings Dashboard Titles & Metas Social XML Sitemaps Advanced Tools Search Console Go Premium Howdy, Jace Steenbarger Jace Steenbargerjsteenbarger Edit My Profile Log Out Log Out Allow MonsterInsights to track plugin usage? Opt-in to tracking and our newsletter to stay informed of the latest changes to MonsterInsights and help us ensure compatibility. Allow Do not allow (function ($) { var trigger = { group: ‘open_count’, code: ‘100_opens’, pri: ’20’ }; function dismiss(reason) { $.ajax({ method: “POST”, dataType: “json”, url: ajaxurl, data: { action: ‘pum_review_action’, nonce: ‘6f528d9dd6’, group: trigger.group, code: trigger.code, pri: trigger.pri, reason: reason } }); $.ajax({ method: “POST”, dataType: “json”, url: ‘https://api.wppopupmaker.com/wp-json/pmapi/v1/review_action&#8217;, data: { trigger_group: trigger.group, trigger_code: trigger.code, reason: reason, uuid: ‘24358365ff5a80e6516166b6ad9dd9ab’ } }); } $(document) .on(‘click’, ‘.pum-notice .pum-dismiss’, function (event) { var $this = $(this), reason = $this.data(‘reason’), notice = $this.parents(‘.pum-notice’); notice.fadeTo(100, 0, function () { notice.slideUp(100, function () { notice.remove(); }); }); dismiss(reason); }) .ready(function () { setTimeout(function () { $(‘.pum-notice button.notice-dismiss’).click(function (event) { dismiss(‘maybe_later’); }); }, 1000); }); }(jQuery)); .pum-notice p { margin-bottom: 0; } .pum-notice img.logo { float: right; margin-left: 10px; width: 75px; padding: 0.25em; border: 1px solid #ccc; } Hi there! You’ve recently hit 100 popup views on your site – that’s awesome!! If you’d like to celebrate this milestone, rate Popup Maker 5-stars to help spread the word! ~ danieliser ” data-reason=”am_now”> Ok, you deserve it Nope, maybe later I already did Check out the new documentation for Duplicate Post!Duplicate Post is now also compatible with WPML!Help me develop the plugin and provide support by donating even a small sum. function duplicate_post_dismiss_notice(){ var data = { ‘action’: ‘duplicate_post_dismiss_notice’, }; jQuery.post(ajaxurl, data, function(response) { jQuery(‘#duplicate-post-notice’).hide(); }); } jQuery(document).ready(function(){ jQuery(‘body’).on(‘click’, ‘.notice-dismiss’, function(){ duplicate_post_dismiss_notice(); }); }); Logged in as: john@echogravity.com | Rate us: <!– –><!– –><!– –><!– –> Lead Capturing Contact Form Part of vCita LiveSite Pack Lead Capturing Contact Form is part of vCita LiveSite Pack Your LiveSite Modules: Contact Form Create beautiful forms using a simple Drag & Drop editor. Edit Livesite Widget Encourage clients to take actions and capture twice as many leads Edit Payments Button Offer your clients a simple way to pay for your services Add Scheduler Self service appointment scheduling for your clients Add One Platform which enables all modules Backoffice All livesite modules plug into a single business management dashboard Go to Backoffice <!– –> SDK for Developers To achieve maximum flexibility use our LiveSite SDK Go to SDK Documentation <!– –> Partner Program Join over 8500 partners who leverage the vCita web engagement solution to extend their brand Learn More Account Settings Disconnect Rate US Support <!– wpbody-content –> <!– wpbody –> <!– wpcontent –> Thank you for creating with WordPress. Get Version 4.8.1 Close dialog Session expired Please log in again. The login page will open in a new window. After logging in you can close it and return to this page. /* <![CDATA[ */ var wpseoAdminGlobalL10n = {“dismiss_about_url”:”\/wp-admin\/admin.php?page=live-site&wpseo-dismiss-about=1&nonce=ed0673a9d7″,”dismiss_tagline_url”:”\/wp-admin\/admin.php?page=live-site&wpseo-dismiss-tagline-notice=1&nonce=5f76e6be94″,”help_video_iframe_title”:”Yoast SEO video tutorial”,”scrollable_table_hint”:”Scroll to see the table content.”}; /* ]]> */ /* <![CDATA[ */ var commonL10n = {“warnDelete”:”You are about to permanently delete these items from your site.\nThis action cannot be undone.\n ‘Cancel’ to stop, ‘OK’ to delete.”,”dismiss”:”Dismiss this notice.”,”collapseMenu”:”Collapse Main menu”,”expandMenu”:”Expand Main menu”};var wpAjax = {“noPerm”:”Sorry, you are not allowed to do that.”,”broken”:”An unidentified error has occurred.”};/* ]]> */ <!– wpwrap –> if(typeof wpOnload==’function’)wpOnload();

    Thread Starter ruttech

    (@ruttech)

    I refreshed the Plugins page and it looks like 2.6.6 is installed now.

    Plugin Author John Godley

    (@johnny5)

    Have you checked the regex checkbox?

    I’ve just tried ^/techniciantraining(.*)$ and it worked fine for me. I’m not sure what you mean about updating your hosts file?

    Plugin Author John Godley

    (@johnny5)

    That error is a WordPress error, not a Redirection error.

    Thread Starter ruttech

    (@ruttech)

    Thanks for the reply John.

    You can update your host’s file to ignore the time some DNS updates take and contact the site directly.

    This is my current setup and the Regex is checked:
    Source URL: ^/techniciantraining(.*)$
    Target URL: /college-program/

    I try navigating to http://www.ignitorlabs.com/techniciantraining and get a 404 page.

    Thread Starter ruttech

    (@ruttech)

    So I created a simple redirect of:
    Source URL: /techniciantraining/
    Target URL: /college-program/

    And I’m still getting a No Results Found page.

    Thread Starter ruttech

    (@ruttech)

    I even went as far as creating a simple redirect under Settings >> 301 Redirects.
    This also is not working.
    My guess now is that it has something to do with our host and not with WP or the plugins.

    Will continue to work on this and update with any information.

    Thread Starter ruttech

    (@ruttech)

    I have solved the issue.

    We are using WP Engine for hosting and it has its own Redirects.

    I added a catch all redirect in the Redirect Rules in my WP Engine Install.

    Source: ^/techniciantraining/?(.*)$
    Destination: /college-program

    As soon as this was added, everything started working.

    I guess this is the reason John was able to get it working and I wasn’t.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Catch All Redirect Not Working’ is closed to new replies.