× Here you can get community support related to ReDJ.

Cannot redirect hyphenated URLs

  • albert8675
  • Topic Author
  • Offline
  • New Member
  • New Member
More
10 years 7 months ago #1525 by albert8675
Replied by albert8675 on topic Cannot redirect hyphenated URLs

Thank you.
The second one works and return a 301 redirect to the index.php. The first one return an error 500, an I do not think is caused by ReDJ or better, ReDJ is not able to intercept it.

You should send me a dump of your ReDJ rules table.


Thanks, there you go.
Attachments:

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

More
10 years 7 months ago #1527 by admin
Replied by admin on topic Cannot redirect hyphenated URLs
It's really strange because from the hits counter only one is working and it should be the first one. But your rules are not correct, destination should be absolute.

If you want support to fix rules, just provide me a temp backend access and send me an email at info(at)selfget.com.

Kind regards,
Luigi

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

  • albert8675
  • Topic Author
  • Offline
  • New Member
  • New Member
More
10 years 7 months ago #1530 by albert8675
Replied by albert8675 on topic Cannot redirect hyphenated URLs

Thank you.
The second one works and return a 301 redirect to the index.php. The first one return an error 500, an I do not think is caused by ReDJ or better, ReDJ is not able to intercept it.

You should send me a dump of your ReDJ rules table.


It is strange that this error happens on one of my site but not another site, however both sites are running on the same server.

Anyway, here is my second question, how to redirect:

From URL: /folder-1/whatever/whatever
To URL: /folder-2/whatever/whatever

Thanks!

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

More
10 years 7 months ago #1532 by admin
Replied by admin on topic Cannot redirect hyphenated URLs
Assuming the request part starts with folder-1:
From URL: ^/folder-1/
To URL: http://{siteurl}/folder-2/{pathltrim /folder-1/}{queryfull}

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

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

  • albert8675
  • Topic Author
  • Offline
  • New Member
  • New Member
More
10 years 7 months ago #1533 by albert8675
Replied by albert8675 on topic Cannot redirect hyphenated URLs
It works! Thanks!!!

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

More
10 years 7 months ago #1538 by admin
Replied by admin on topic Cannot redirect hyphenated URLs
U're welcome... :)

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

Time to create page: 0.091 seconds