I’m not really sure what you mean in your example, but if you set the target to include https://www then it will match your web.config
When I add the full URL to the target field, it just changes it to a relative URL.
So I have the following.
Source URL | /denton
Target URL | /denton-dallas-fort-worth
If I put the full URL,
Target URL | https://www.example.com/denton-dallas-fort-worth
it changes once saved, back to /denton-dallas-fort-worth.
When I run a redirect checker, my results are:
http://example.com/denton
301 Moved Permanently
https://www.example.com/denton
301 Moved Permanently
https://www.example.com/denton-dallas-fort-worth
200 OK
What I want is to avoid that middle redirect. I want to go straight to the final redirect.
Thank you for the help.
It shouldn’t remove the domain from your target, only your source. Do you have a real URL I can test with?
I don’t think the redirect from http://littleguys.com/denton => https://littleguys.com/denton is caused by Redirection. Your server is probably doing this before Redirection has a chance.
You mention web.config, so I think that means you are using a Microsoft server? I would normally suggest saving your redirects to .htaccess, but I’m not sure how this would work in your situation.
Correct. This is on Windows Server, and I am using web.config to redirect all to https://www.
I suppose because it is redirecting first on the server, the only way to do it and skip that middle redirect is to explicitly define each redirect in web.config.
Unless you can come up with another idea for me, I don’t know that there is another way to reach it like that. I appreciate your help.
If it’s being handled by your server then there’s not much you can do in Redirection to work around it. On Apache or Nginx you’d be able to use Redirection to save an appropriate redirect file, bypassing this kind of problem, but it doesn’t support Windows Server.