× Here you can get community support related to ReDJ.

How can I do this redirect?

  • limaeasy
  • Topic Author
  • Offline
  • New Member
  • New Member
More
11 years 6 months ago #1051 by limaeasy
How can I do this redirect? was created by limaeasy
I don't know why, but some of my pages have been listed by Google with "ftp.domainname.com" instead of "www.domainname.com".

How do I create one dynamic redirect (macros) to change them all to the "www." version taking into consideration the individual path/query...

There are different scenarios:

ftp.domainname.com/example
ftp.domainname.com/example2
ftp.domainname.com/category1/example1
ftp.domainname.com/category2/example1
ftp.domainname.com/category2/example2
ftp.domainname.com/category1/example1/menu/page:2/limit:25/#pg
ftp.domainname.com/category2/example2/menu/page:5/limit:25/#pg

Please Log in or Create an account to join the conversation.

More
11 years 6 months ago - 11 years 6 months ago #1054 by admin
Replied by admin on topic How can I do this redirect?
Try this:
From URL: ^https?://ftp\.domainname\.com/
To URL: {scheme}://{host}{path}{queryfull}
Request only: false (unchecked)

This rule includes http and https URLs, but doesn't include any URLs containing user/password/port.

Kind regards,
Luigi
Last edit: 11 years 6 months ago by admin.

Please Log in or Create an account to join the conversation.

  • limaeasy
  • Topic Author
  • Offline
  • New Member
  • New Member
More
11 years 6 months ago #1055 by limaeasy
Replied by limaeasy on topic How can I do this redirect?
Luigi, Thank you for pointing me in the right direction!

With your suggestion:
From URL: ^https?://ftp\.domainname\.com/
To URL: {scheme}://{host}{path}{queryfull}
Request only: false (unchecked)

I got an error "This webpage has a redirect loop" - even after clearing the cache; so I modified the "To URL" like this (I do not use https) and it works:
To URL: http://www.domainname.com{path}{queryfull}

Once again, thank you for your help!

Please Log in or Create an account to join the conversation.

More
11 years 6 months ago #1056 by admin
Replied by admin on topic How can I do this redirect?
Sorry, my mistake... I'm a little stunned because of allergy :)

But I'm happy you was able to correct the rule by yourself, now is right!

Kind regards,
Luigi
The following user(s) said Thank You: limaeasy

Please Log in or Create an account to join the conversation.

Time to create page: 0.181 seconds