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

not working with URL that has 'sub directories'
(1 Online) (1) Ospite
  • Pagina:
  • 1
  • 2

ARGOMENTO: not working with URL that has 'sub directories'

Re:not working with URL that has 'sub directories' 14 Anni, 9 Mesi fa #1085

  • Neo85
  • Offline
  • Fresh Boarder
  • Messaggi: 1
Hi Luigi, thanks for great component, I hope it saved me from big problems with google crawler. Google crawler index a thousands of pages that I didn't want to be indexed, because of my wrong site map. It was really hard to put noindex meta in every single page, so I used this component to say that every page that have any number has noindex meta tag, and I hope it'll work.

I have 2 questions, is there any chance to say something like this www.domain.com/anything/anything? I mean to do something with url that have 2 levels. Just like you have possibility to say in robots.txt www.domain.com/*/*

An if you can explain what does ^/photography-boudoir/?$
^/photography/?$ mean? What do this simbols ^?$ mean in this command?

Goran
L'Argomento è stato bloccato.

Re:not working with URL that has 'sub directories' 14 Anni, 9 Mesi fa #1089

  • admin
  • Offline
  • Administrator
  • Messaggi: 1603
Hi Goran,
Tag Meta uses regular expressions to compare the current URL with items configured, and this is powerful because, for example, you can match a group of URLs at same time.

Here you can find all you need to know:

dev.mysql.com/doc/refman/5.1/en/regexp.html

About yor question:

An if you can explain what does ^/photography-boudoir/?$
^/photography/?$ mean? What do this simbols ^?$ mean in this command?


The caret ^ means "start with", and the dollar $ means "end with", the question mark means "0 or 1 occurrences of previous char" that is the slash /.
So in this way the only matching URLs are:

www.yoursite.com/photography-boudoir
www.yoursite.com/photography-boudoir/

Remember that we get the REQUEST_URI, so we don't take care about protocol and domain parts in the URL.

is there any chance to say something like this www.domain.com/anything/anything? I mean to do something with url that have 2 levels. Just like you have possibility to say in robots.txt www.domain.com/*/*


Just add an item with the following URI:

URI: /anything/anything/?

This match with:

www.yoursite.com/anything/anything
www.yoursite.com/anything/anything/
www.yoursite.com/anything/anything/something
www.yoursite.com/anything/anything/something/else

And so on.

I hope it was clear. Let me know if you need more help.

Regards,
Luigi
Ultima modifica: 13 Anni fa Da admin.
L'Argomento è stato bloccato.
  • Pagina:
  • 1
  • 2
Moderatori: admin
Tempo generazione pagina: 0.33 secondi
Cerca con Google
News
Chi è online
 181 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.