× Here you can get community support related to ReDJ.

changin last part to lowercase

  • kkdahl
  • Topic Author
  • Offline
  • New Member
  • New Member
More
6 years 11 months ago #6456 by kkdahl
changin last part to lowercase was created by kkdahl
Hi.

I have spent some day reading documentation. But my english is not good. So i think i misunderstand.
Can you please help?

Because joomla has lowercase alias, i want to redirect uppercase to lowercase.

For examble this is what I se in "Errors":

referer: anothersite.dk/chem/index
visited url: mysite.dk/index.php/NPU12345
should be redirected to https://mysite/index.php/npu12345

refering website will ask for many different urls on my site, but the last eight charectars will always be in format: XXX00000 and should be redirected to xxx00000

how to set up?

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

  • kkdahl
  • Topic Author
  • Offline
  • New Member
  • New Member
More
6 years 11 months ago #6457 by kkdahl
Replied by kkdahl on topic changin last part to lowercase
Perhaps i'm not explaning correct?

what I wan't is a redirect that transforms
mysite.dk/index.php/{variable in uppercase}
to
mysite.dk/index.php/{variable in lowercase}

makes more sense?

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

  • kkdahl
  • Topic Author
  • Offline
  • New Member
  • New Member
More
6 years 11 months ago - 6 years 11 months ago #6458 by kkdahl
Replied by kkdahl on topic changin last part to lowercase
Sorry - deleting this post
Last edit: 6 years 11 months ago by kkdahl. Reason: wrong

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

More
6 years 11 months ago #6463 by admin
Replied by admin on topic changin last part to lowercase
Sorry for delay.

referer: anothersite.dk/chem/index
visited url: mysite.dk/index.php/NPU12345
should be redirected to https://mysite/index.php/npu12345


You can use the {uppercase} macro:
{uppercase}text{/uppercase}
Returns the text specified in upper case

So a rule could be:
From URL: ^/index\.php/<put the pattern you need to match>
To URL: {scheme}://{siteurl}/index.php/${lpath}
Request only: true (checked)
Case sensitive: true (checked)
Placeholders:
path={pathrtrim /index.php}
lpath={uppercase}${path}{/uppercase}

Kind regards,
Luigi

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

Time to create page: 0.144 seconds