What domain are you running the plugin on?
I think its not a matter of the domain.
If you enter
Source URL: http://www.domain.com/test.html
Target URL: /new/test
It will be:
Source URL: /test.html
Target URL: /new/test
Sure, but Redirection only works on the domain it is installed on. If you enter another domain then it makes no sense as it’s not installed on that domain.
Yes thats clear. But when e.g. two old domains will be unified in one new domain, the redirect should work anyway.
olddomain1.com/test.html => newdomain.com/new/test1
olddomain2.com/test.html => newdomain.com/new/test2
Is that impossible with your plugin? Why the domain is removed after entering?
-
This reply was modified 8 years, 10 months ago by
ovangmbh.
If by unified do you mean that you are going to have both domain names pointing at the same WP blog? If that’s the case then you don’t need to create a redirect for each one. Redirection works with relative URLs. If you create a redirect for ‘/test.html’ then that will work regardless of which domain its for.
Yes, two domains pointing to the same blog. The problem is now, that the two domains have the SAME relative url “test.html”, which should redirect to different targets like in this example:
olddomain1.com/test.html => newdomain.com/new/test1
olddomain2.com/test.html => newdomain.com/new/test2
The problem is, that when I enter the full domain in the field “Source URL”, it crops the domain and just leaves the relative URL.
The plugin isn’t currently designed to work like that. There’s a feature request tracked here which sounds similar https://github.com/johngodley/redirection/issues/112