Home Forum
2024-03-28
Benvenuto, Ospite
Nome Utente Password: Ricordami

Conversion - Mixed or All Upper Case to Lower Case
(1 Online) (1) Ospite
  • Pagina:
  • 1

ARGOMENTO: Conversion - Mixed or All Upper Case to Lower Case

Conversion - Mixed or All Upper Case to Lower Case 13 Anni, 1 Mese fa #1835

  • cmb
  • Offline
  • Fresh Boarder
  • Messaggi: 13
I need to write a redirection order to fix many broken URL requests. The only change required is to convert any upper case alphabetic characters in the {path} and {query} to lower case characters. For example, the From URL is of the form:
http://www.mysite.com/Some-Section-Name/nnn-Some-Category-Name.html

where nnn is numeric.

The converted To URL will be just the lower-case equivalent:
http://www.mysite.com/some-section-name/nnn-some-category-name.html


How can I use regular expressions or some other method to convert an incoming URL with one or more upper case letters to a URL with only lower-case letters? Is it possible to write the redirection order to ignore correctly-formed URLs with all alphabetic characters in lower case?

ReDJ Version 1.5.3 Community
L'Argomento è stato bloccato.

Re: Conversion - Mixed or All Upper Case to Lower Case 13 Anni, 1 Mese fa #1842

  • admin
  • Offline
  • Administrator
  • Messaggi: 1603
Hi,
to do this I should add some macros for destination URL, and I think it's a good idea. I'm working on a way to allow more complex transformations with a step-by-step process.

Meanwhile, maybe the faster way is to add a {pathlowercase} macro. Are you able to do this by yourself? Do you need help?

Luigi
L'Argomento è stato bloccato.

Re: Conversion - Mixed or All Upper Case to Lower Case 13 Anni, 1 Mese fa #1844

  • cmb
  • Offline
  • Fresh Boarder
  • Messaggi: 13
admin ha scritto:
Meanwhile, maybe the faster way is to add a {pathlowercase} macro. Are you able to do this by yourself? Do you need help?

If you mean add some code to a ReDJ PHP file, I can do that. Tell me what to add and where and I'll test it for you.
L'Argomento è stato bloccato.

Re: Conversion - Mixed or All Upper Case to Lower Case 13 Anni, 1 Mese fa #1845

  • admin
  • Offline
  • Administrator
  • Messaggi: 1603
No,
I mean "are you a programmer"? No problem, I will add the macro for you.

L.
L'Argomento è stato bloccato.
  • Pagina:
  • 1
Moderatori: admin
Tempo generazione pagina: 0.51 secondi
Cerca con Google
News
Chi è online
 68 visitatori online
Sponsor

slotmachineaamsonline.com è una guida alle migliori slot machine online legali in Italia. Sul sito trovi un elenco sempre aggiornato dei casino online con Slot machine e bonus slot, le ultime novità dal mondo delle slot online e le migliori strategie per vincere. Inoltre, è disponibile una sezione dedicata alle slot machine da BAR che finalmente sono disponibili nella versione online.