× Here you can get community support related to ReDJ.

"to" URL being added to the end of the domain name

  • Sensei
  • Topic Author
  • Offline
  • New Member
  • New Member
More
9 years 7 months ago - 9 years 7 months ago #3093 by Sensei
Hi there,

All of my URL redirects are wrongly redirecting in the same way. Basically it's writing the entire to path is being written at the end of my site's domain name and tld, eg, if I have:

from url:
h t t p : / /mydomain.com/test

to url:
h t t p : / /www.anotherdomain.com/url/path

Then when I try visiting mydomain.com/test instead of going to the to url, it tries to go to h t t p : / /mydomain.com/www.anotherdomain.com/url/path

...with a 404 page. Note: I only added the spaces to all of the instances of h t t p : / / as this forum removes them when displaying posts.

I have case sensitive, Request only and decode URL all turned off. The redj plugin is enabled.

I'm using:
Redj 1.7.6 (Joomla 1.7-2.5 version)
Joomla 2.5.24
MySQL 5.1.42
LiteSpeed server
PHP 5.3.10
Last edit: 9 years 7 months ago by Sensei.

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

More
9 years 7 months ago #3096 by admin
Ok,
first be sure to add ErrorDocument to your .htaccess file:
ErrorDocument 404 /

This allows you to match any source request with ReDJ. Then create this rule:
From URL: ^/test$
To URL: {scheme}://{siteurl}/url/path
Request only: true (checked)

And tell me what happens...

Kind regards,
Luigi

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

  • Sensei
  • Topic Author
  • Offline
  • New Member
  • New Member
More
9 years 7 months ago #3099 by Sensei
Ok, now going to:
h t t p : / /mydomain.com/test

redirects to:
h t t p :/ /mydomain.com/url/path

My main use for ReDJ is actually to set up aliases to redirect to other sites though.

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

  • Sensei
  • Topic Author
  • Offline
  • New Member
  • New Member
More
9 years 7 months ago #3100 by Sensei
I tried changing the to url to an off site URL, but strangely, it still just ends up redirecting to:
h t t p :/ /mydomain.com/url/path

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

More
9 years 7 months ago #3102 by admin
Please, be sure to clean browser cache after rule changes (redirection are usually cached).

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

Time to create page: 0.104 seconds