• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.
[TH] Redirect Rules

[TH] Redirect Rules 1.0.0a

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

Jon W

Well-known member
#1
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.

This add-on adds the ability to create redirect rules for redirecting specified parts of your site to another domain.

Redirect rules support all the usual user criteria and page criteria, meaning they are much more powerful than your standard htaccess redirect.

For example, you can redirect all forums/threads in a particular node to a different...
Read more about this resource...
 

MattW

Well-known member
#3
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) {
  }
}
 

cdub

Well-known member
#8
Hi there read the description was not 100% sure what this does ???
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.
 

WCFA

Active member
#9
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.
So you have two XF accounts though I mean, you have XF installed twice as in two paid copies ? ?
 

cdub

Well-known member
#11
So you have two XF accounts though I mean, you have XF installed twice as in two paid copies ? ?
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.
 

WCFA

Active member
#13
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 .
 

Jon W

Well-known member
#14
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 .
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.
 

WCFA

Active member
#15
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. :)
 

Jon W

Well-known member
#17
@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.
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.
 

cdub

Well-known member
#19
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.
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.