Home Forum
2024-12-22
Benvenuto, Ospite
Nome Utente Password: Ricordami

section/cat not working in any macros
(1 Online) (1) Ospite
  • Pagina:
  • 1

ARGOMENTO: section/cat not working in any macros

section/cat not working in any macros 14 Anni, 1 Mese fa #1606

  • lkron
  • Offline
  • Fresh Boarder
  • Messaggi: 1
Hi,

Most things are working well however, I can't get the section/cat (section and category) to show up in any of my ToURL macros.

More Details:
If I try to use the {path} macro I get various problems from IE8 errors (not 404 errors), i.e., this http://{host}/home{path} returns this immediately: "Internet Explorer cannot display the webpage".
In another case, for a ToURL of: http://{host}{path} IE just went off for minutes and never came back. The green progress bar in IE progressed forward over many minutes but even when it looked like it hit the end it never continued to process the URL. I stopped it after about 5 minutes and reset the ToURL.

{baseonly} returns nothing or empty. Which I take to mean that this instance is installed in the root.

{pathfrombase} returns just the file name without the sections/cat.

I have SEF URLs turned on so for articles created with JCE I can use http://{host}/home{pathfrombase} to redirect to the article directly off the site. Somehow anything other than the home page has /home/ right after the .com of the website. The developer is working to fix this.

My problem is that where ever I have a text on the section or category page I don't seem to be able to use any macros as none of them contain the section/cat. I'm having to do a specific redirect for every section and category page. Previously the site had ~managi5/index.php in place of /home and Google crawled the site at that time so I'm looking for a solution so that
http://{host}/~managi5/index.php/* and http://{host}/home/*
Would go to:
http://{host}{pathfrombase}
if {pathfrombase} contained /section/cat/*
However, /section/cat/ is missing.

E.g., http://{host}/home/about-us
Should redirect to
http://{host}/about-us

I hope that makes sense.
L'Argomento è stato bloccato.

Re: section/cat not working in any macros 14 Anni, 1 Mese fa #1607

  • admin
  • Offline
  • Administrator
  • Messaggi: 1603
Hi,
to get the base path just use {siteurl} macro: http://{siteurl}.

About the dynamic redirections you want to get, could you please provide me with some real url example? I mean, "I need to redirect URL1 to URL2". If you prefer, send me an email at info(at)sistemistica.it.

Regards,
Luigi
L'Argomento è stato bloccato.
  • Pagina:
  • 1
Moderatori: admin
Tempo generazione pagina: 0.39 secondi
Cerca con Google
News
Chi è online
 164 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.