× Here you can get community support related to ReDJ.

tried everything...but i can't set a redirect

More
9 years 2 months ago #3505 by atexo
Maybe a redirect rules expert can help me.

As I use relative URL it seem that my css file, which should load a API fonts from google, adds always my domain first. The requested wrong URL is then the following:

www.iqchecker.de/templates/yoo_nano3/styles/Atexo/css/fonts.googleapis.com/css?family=Open+Sans:400,300

The first part up "/css/" is wrongly added. I want to redirect this URL to fonts.googleapis.com/css?family=Open+Sans:400,300

I tried several rules, e.g. FROM
1. “/css?family=Open+Sans:400,300$” or
2. “/templates/yoo_nano3/styles/Atexo/css/” or
3. “www.iqchecker.de/templates/yoo_nano3/styles/Atexo/css/https://fonts.googleapis.com/css?family=Open+Sans:400,300

tofonts.googleapis.com/css?family=Open+Sans:400,300

However, every try was in vain and led againt to a 404 error
Maybe you can help me.

Thanks in advance
Atexo

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

More
9 years 2 months ago #3509 by admin
Hi Atexo,
for me is not clear which is the source URL that is redirected. Can you post here together with a dump of ReDJ rules table? In this way I will be able to call the URL by myself, check where will be redirected and search which rule cause the issue.

Kind regards,
Luigi

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

More
9 years 2 months ago #3529 by atexo
Hi Luigi,

thanks for you quick answer. Please finde the error and the redirect rule attached. the wrong link is:

www.iqchecker.de/templates/yoo_nano3/styles/Atexo/css/https://fonts.googleapis.com/css?family=Open+Sans:400,300

this URL should be redirected to: fonts.googleapis.com/css?family=Open+Sans:400,300

Thanks Atexo



Attachments:

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

More
9 years 2 months ago - 9 years 2 months ago #3535 by admin
Hi,
try to change the rule as follow:
From URL: /fonts\.googleapis\.com/css\?family=Open\+Sans:400,300
To URL: http://fonts.googleapis.com/css?family=Open+Sans:400,300
Request only: true (checked)

There are some special chars that must be escaped (question mark, dot, plus sign). Let me know...

Kind regards,
Luigi
Last edit: 9 years 2 months ago by admin.
The following user(s) said Thank You: atexo

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

More
9 years 2 months ago #3539 by atexo
Hi Lugi,
seems to to work properly! I cleared the errors and hopefully i won't see that special error in future again.

Thanks alot!
Atexo

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

More
9 years 2 months ago #3540 by admin
U're welcome.

Best regards,
Luigi

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

Time to create page: 0.193 seconds