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'

not working with URL that has 'sub directories' 15 Anni, 4 Mesi fa #405

  • redbaron
  • Offline
  • Fresh Boarder
  • Messaggi: 5
Hi I have installed Tag meta on a site of mine and for most of the URLs I set up it is fine. However I have some where the SEF url generated by Joomla has a secont backslash. for example one URL is

www.immortaleye.co.uk/photography/boudoir-photography.html

I expected this to work with
/photography/boudoir-photography.html but no joy
I also tried
/boudoir-photography.html

I am using joomla 1.5 with its native SEF turned on and using .htaccess and mod rewrite on.

the plugin is active and set to
Add Meta Author No
Replace Meta Generator No
Add site name to page title No
Clean default page No
Align Meta Title No
Mode REDIRECT Yes

Your product does a great job on the other pages but I would like to work out what I am doing wrong for this.

I get the same with
www.immortaleye.co.uk/website-design-service-chinnor-oxon/design-portfolio.html

truncated to
website-design-service-chinnor-oxon/design-portfolio.html
So I'm sure it has something to do with that second /slash

Baron
L'Argomento è stato bloccato.

Re:not working with URL that has 'sub directories' 15 Anni, 4 Mesi fa #408

  • admin
  • Offline
  • Administrator
  • Messaggi: 1603
Hi Baron,
first try to set Mode REDIRECT to off (it is required if you use, for example, sh404SEF).

If this not solve, send me dump of Tag Meta table, and a screenshot of all active plugins.

Thanks,
Luigi
Ultima modifica: 15 Anni, 4 Mesi fa Da admin.
L'Argomento è stato bloccato.

Re:not working with URL that has 'sub directories' 15 Anni, 4 Mesi fa #411

  • redbaron
  • Offline
  • Fresh Boarder
  • Messaggi: 5
Thanks for the response Luigi. I hope I have attached what you want. My Italian is none existent So I'm having to make a guess about what buttons to push!
In terms of the mod_redirect, I had tried it originally with this off and it did not work then either.

Baron
L'Argomento è stato bloccato.

Re:not working with URL that has 'sub directories' 15 Anni, 4 Mesi fa #412

  • redbaron
  • Offline
  • Fresh Boarder
  • Messaggi: 5
Thanks for the reply Luigi. Hope this works. My Italian is none existent so I am having to make a guess at the buttons and error messages!
I file di questo Forum sono invisibili ai visitatori. Prego accedi o registrati per visualizzarli.
Allegati:
  • Allegato I file di questo Forum sono invisibili ai visitatori. Prego accedi o registrati per visualizzarli.
L'Argomento è stato bloccato.

Re:not working with URL that has 'sub directories' 15 Anni, 4 Mesi fa #413

  • admin
  • Offline
  • Administrator
  • Messaggi: 1603
Ok, I got it...

Look at item number 3. It's a "/" and it means that matchs with ALL URLs.

If more than an item match, Tag Meta uses the first one, so items 1 and 2 works, but there's no hope to let work item 4 and 5.

If item 3 is needed for HOME page, change it in "/$".

Let me know,
Luigi
L'Argomento è stato bloccato.

Re:not working with URL that has 'sub directories' 15 Anni, 2 Mesi fa #633

  • systeman
  • Offline
  • Junior Boarder
  • Messaggi: 24
Hi,

I have just installed this on a new website and had the same problem.

It took me a while to work out the solution.

Example: The site navigation is like this:

Home | something 1 | something 2 | something 3

In the above example, 'something 1' is a link to a section.

There was no problem setting the meta for the top level URI in the menu.
You would simply add in the URI field /something-1 (look in the browser for the string).

Lets say for instance, 'something 1' is a link to a section (though it could also be an uncategorised page), and then you add a sub level link to a category of the 'something 1' section and call the link 'articles in something 1'

If you simply add in the URI field /articles-in-something-1 you will see from the actual web page source code that only the first level meta is called. This is not what you want.

The reason is this: the component looks for the first part of the URI string, what ever comes after that will have the same meta.

What you need to do is this:

In the 'Items' area, on the right had side, always make sure the last part of the URI is placed in order above the section URI.

Like in this example:
/more-articles-in something-1 [a category]
/articles-in-something-1 [a category]
/something-1 [a section]

Hope this helps people.

Paul
L'Argomento è stato bloccato.

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

  • redbaron
  • Offline
  • Fresh Boarder
  • Messaggi: 5
I just thought I would come back to this one as originally I just could not get it to work properly. Today however I had a eureka moment, which I now see ties in with the post above, though I could not figure it at the time.

In non technical terms it seems Tag-Meta works by looking at the URL and then comparing it with the list you create in Tag-Meta. STARTING AT THE TOP!! of that list then working down. As soon as it finds even a PARTIAL match for that URL it then uses the information stored against that entry and looks no further down the list

for example let us say your have a URL /photography-boudoir and your list of URL has the order
/photography
/photography-boudoir

When someone accesses your url that goes xxxx/photography-boudoir
Tag-Meta starts at the top of the list and works down. It first finds /photography and says hey, that matches. Having done so it does not bother to check any further down the list but simply pulls the information stored against /photography !!!

About half way down my list I originally had one for the index page ie just a simple / The result was Tag-Meta never bothered with anything further down. In the above example I renamed the latter URL /boudoir-photography and all was well.

I'm assuming there must be a regular expression in use somewhere that compares the current URL with the stored ones. IF so perhaps in a future update this could be revised to prevent this happening.

For those who sussed this straight away apologies for the long post. Some of us are not quite so quick however and I hope this will be of help. this is after all a great free component and and this silly niggle meant it was of limited use to me for quite some time.
L'Argomento è stato bloccato.

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

  • admin
  • Offline
  • Administrator
  • Messaggi: 1603
Hi,
everithing is correct, Tag Meta searches all the entries that match with current URL, and uses only the first one in the "ordering".

But this is not a problem if you use the power of regular expressions. Take your example:

/photography
/photography-boudoir

You have 2 possibility to make them work. The first one is to order entries as follow:

/photography-boudoir
/photography

So that www.yoursite.com/photography-boudoir matches with both but use the first, and www.yoursite.com/photography matches only the second.

But a better way to make them work is to configure entries as follow:

^/photography-boudoir/?$
^/photography/?$

Meaning of these regexp is here:

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

Regards,
Luigi
Ultima modifica: 14 Anni, 10 Mesi fa Da admin.
L'Argomento è stato bloccato.

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

  • redbaron
  • Offline
  • Fresh Boarder
  • Messaggi: 5
Hi Luigi
I will bear that in mind. Would it not be better though if TagMeta appended the extra characters automatically behind the scenes before checking for a match?

To be honest that was how I assumed it actually worked. ie Web designers, (who are generally not well versed in regular expressions) would simply provide the url, say /photograpy/boudoir or similar then TagMeta would change that to
^/photography-boudoir/?$ before it tried to find a match.

That way making sure URL's were listed in the correct order would no longer be a problem.

Absolutely great free component however now I understand better why I was having problems and I appreciate your generosity in making this available to people like me as well as taking time to provide support.

Baron
L'Argomento è stato bloccato.

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

  • admin
  • Offline
  • Administrator
  • Messaggi: 1603
You are absolutely right.

Tag Meta was created for my needs, and I thought it might serve someone else. But it was not created to be "user-friendly". Now I'm really working on improving usability (e.g. a wizard to create items), and my first target is a good easy and clear tutorial.

Thanks for using Tag Meta,
Luigi
L'Argomento è stato bloccato.
  • Pagina:
  • 1
  • 2
Moderatori: admin
Tempo generazione pagina: 0.45 secondi
Cerca con Google
News
Chi è online
 144 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.