changin last part to lowercase
-
kkdahl
-
Topic Author
-
Offline
-
New Member
-
Less
More
-
Posts: 3
-
Thank you received: 0
-
-
6 years 11 months ago #6456
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
-
Less
More
-
Posts: 3
-
Thank you received: 0
-
-
-
kkdahl
-
Topic Author
-
Offline
-
New Member
-
Less
More
-
Posts: 3
-
Thank you received: 0
-
-
6 years 11 months ago - 6 years 11 months ago #6458
by kkdahl
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.
Less
More
-
Posts: 3194
-
Thank you received: 441
-
-
6 years 11 months ago #6463
by admin
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