1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Unmaintained [TH] Redirect Rules 1.0.0a

Set criteria for certain parts of your site to be redirected to a different domain.

  1. Jon W

    Jon W Well-Known Member

    Jon W submitted a new resource:

    Redirect Rules by Waindigo - Set criteria for certain parts of your site to be redirected to a different domain.

    Read more about this resource...
     
  2. cdub

    cdub Well-Known Member

    Awesome! Thanks Jon! I'm installing it on my test server right now.
     
    MattW likes this.
  3. MattW

    MattW Well-Known Member

    Jon, I've been helping Chris get this installed and up and running. When you install the add-on, until there is a rewrite rule, every page outside the ACP errors

    Code:
    ErrorException: Invalid argument supplied for foreach() - library/Waindigo/RedirectRules/Listener/TemplatePostRender.php:17
    Generated By: Unknown Account, A moment ago
    Stack Trace
    #0 /home/studentfilms/public_html/library/Waindigo/RedirectRules/Listener/TemplatePostRender.php(17): XenForo_Application::handlePhpError(2, 'Invalid argumen...', '/home/studentfi...', 17, Array)
    #1 /home/studentfilms/public_html/library/Waindigo/RedirectRules/Listener/TemplatePostRender.php(56): Waindigo_RedirectRules_Listener_TemplatePostRender->run()
    #2 [internal function]: Waindigo_RedirectRules_Listener_TemplatePostRender::templatePostRender('thread_view', '\n\n\t\n\n\n\n\n\n\n\n\n\n\n\n...', Array, Object(XenForo_Template_Public))
    #3 /home/studentfilms/public_html/library/XenForo/CodeEvent.php(58): call_user_func_array(Array, Array)
    #4 /home/studentfilms/public_html/library/XenForo/Template/Abstract.php(195): XenForo_CodeEvent::fire('template_post_r...', Array, 'thread_view')
    #5 /home/studentfilms/public_html/library/XenForo/Template/Public.php(110): XenForo_Template_Abstract->render()
    #6 /home/studentfilms/public_html/library/XenForo/ViewRenderer/HtmlPublic.php(123): XenForo_Template_Public->render()
    #7 /home/studentfilms/public_html/library/XenForo/FrontController.php(618): XenForo_ViewRenderer_HtmlPublic->renderContainer(Object(XenForo_Template_Public), Array)
    #8 /home/studentfilms/public_html/library/XenForo/FrontController.php(158): XenForo_FrontController->renderView(Object(XenForo_ControllerResponse_View), Object(XenForo_ViewRenderer_HtmlPublic), Array)
    #9 /home/studentfilms/public_html/index.php(13): XenForo_FrontController->run()
    #10 {main}
    Request State
    array(3) {
      ["url"] => string(62) "http://www.domain.com/threads/what-does-a-c-e-mean.7532/"
      ["_GET"] => array(0) {
      }
      ["_POST"] => array(0) {
      }
    }
     
    Jon W likes this.
  4. Jon W

    Jon W Well-Known Member

    MattW and cdub like this.
  5. cdub

    cdub Well-Known Member

    ogirginc, Jon W and MattW like this.
  6. cdub

    cdub Well-Known Member

    Does this also remove these nodes from the site map? It should if it doesn't now.
     
  7. WCFA

    WCFA Active Member

    Hi there read the description was not 100% sure what this does ???
     
  8. cdub

    cdub Well-Known Member

    It's a way to redirect certain nodes to a different domain which I used to split my current forum onto two separate domains and have separate DBs.
     
  9. WCFA

    WCFA Active Member

    So you have two XF accounts though I mean, you have XF installed twice as in two paid copies ? ?
     
  10. Jon W

    Jon W Well-Known Member

    Yes he does, but this would also work if you have two domains pointed at the same XF installation.
     
  11. cdub

    cdub Well-Known Member

    Yes. I found it easier and less confusing than the multi site system.... Mainly because the multi site system was glitchy with the addons I use.
     
  12. cdub

    cdub Well-Known Member

    And also @Jon W does this add on remove the threads from the sitemap?
     
  13. WCFA

    WCFA Active Member

    Forgive my ignorance, Jon, but couldnt I just point my domain to the other site in my registrar ?
    I must be missing the capability of the add on. I checked out your sites Cdub, but was not sure still
    what this is supposed to be doing .
     
  14. Jon W

    Jon W Well-Known Member

    It is to only redirect specific parts of your site, which can't be done at the registrar level or even at the htaccess level. For example, you could set a specific node, a specific user or something like that to redirect to a different domain.
     
  15. WCFA

    WCFA Active Member

    Ok got it,;) hmmm interesting concept, I might be able to use something like this. I am wanting to add some training areas
    but XF does not have any learning addons etc, but SMF does so I could route an node to the SMF learning area . Thank you for
    the explanation. :)
     
  16. cdub

    cdub Well-Known Member

    @Jon W I just regenerated the sitemap for Studentfilms.com and looked at it in a text based editor. It is still including the moved nodes in the sitemap. This needs to be fixed.
     

    Attached Files:

    Last edited: Dec 8, 2014
  17. Jon W

    Jon W Well-Known Member

    It is hard to know whether this is the reason the results are appearing on Google (I suspect not), but either way this add-on was never intended to remove the URLs from the sitemap. I will release a separate add-on that will allow you to remove specified nodes from the sitemap.
     
  18. Jon W

    Jon W Well-Known Member

  19. cdub

    cdub Well-Known Member

    Well if one is moving nodes from one domain to another then logically you wouldn't want those nodes included in the sitemap - so it should be part of this addon shouldn't it? Either way... if I could get a way to do that it would be great.
     

Share This Page