1. Forum
    1. Unerledigte Themen
  2. Artikel
  3. Mitglieder
    1. Letzte Aktivitäten
    2. Benutzer online
    3. Team
    4. Mitgliedersuche
  4. Blog
    1. Artikel
  • Anmelden
  • Registrieren
  • Suche
Dieses Thema
  • Alles
  • Dieses Thema
  • Dieses Forum
  • Artikel
  • Forum
  • Blog-Artikel
  • Seiten
  • Erweiterte Suche
  1. StageTwo - Deine Wohlfühloase
  2. Software
  3. WBB SEO Plugin

How to prevent duplicated URL slugs?

  • blueracer66
  • 1. März 2014 um 06:17
1. offizieller Beitrag
  • blueracer66
    Anfänger
    Punkte
    45
    Beiträge
    8
    Wohnort
    California
    • 1. März 2014 um 06:17
    • #1

    I just purchased your plugin via Woltlab mainly to remove the annoying "index.php" perimeter from URLs.

    I want http://site.com/lexicon/lexicon/ to become just http://site.com/lexicon/ and http://site.com/blog/blog/ to become just http://site.com/blog/. How can I achieve this? Thanks!

  • FragSalat
    Administrator
    Reaktionen
    213
    Punkte
    26.013
    Beiträge
    4.923
    Blog-Artikel
    13
    • 1. März 2014 um 11:13
    • Offizieller Beitrag
    • #2

    Create a Route for these Controllers with a Schema without these names.
    Example Controller: wbb\page\BoardPage
    Schema: /{id}-{title}

    • Nächster offizieller Beitrag
  • blueracer66
    Anfänger
    Punkte
    45
    Beiträge
    8
    Wohnort
    California
    • 1. März 2014 um 11:32
    • #3

    Thank you for replying! The blog links work well. However, the Lexicon categories simply link to the Lexicon index. So category links show as http://site.com/lexicon/ instead of http://rsite.com/lexicon/category. Any thoughts on this? Thanks!

    Einmal editiert, zuletzt von blueracer66 (1. März 2014 um 12:24)

  • FragSalat
    Administrator
    Reaktionen
    213
    Punkte
    26.013
    Beiträge
    4.923
    Blog-Artikel
    13
    • 2. März 2014 um 02:54
    • Offizieller Beitrag
    • #4

    Sry i don't got the problem righ now.
    You created a route as described by me and the link /lexicon is pointing to /lexicon/category or what?

    • Vorheriger offizieller Beitrag
    • Nächster offizieller Beitrag
  • blueracer66
    Anfänger
    Punkte
    45
    Beiträge
    8
    Wohnort
    California
    • 2. März 2014 um 09:15
    • #5

    Thank you for replying, Sick^

    I added a route for LexiconPage with controller lexicon\page\LexiconPage and parameters to ignore /{id}-{title} which successfully changes site.com/lexicon/lexicon/ to become just site.com/lexicon/. The problem is if you click on any of the Lexicon categories nothing it will simply redirect site.com/lexicon/.

    Do I need to add more routes? If so, which parameters? Thank you for your help!

  • FragSalat
    Administrator
    Reaktionen
    213
    Punkte
    26.013
    Beiträge
    4.923
    Blog-Artikel
    13
    • 2. März 2014 um 11:03
    • Offizieller Beitrag
    • #6

    Ah ok got it.

    1. Delete the Route^^
    2. Create a new Route
    3. Controller: lexicon\page\Lexicon
    4. Schema; /{id}-{title}
    5. Ignore Parameters: empty
    6. Make a tick on id and title optional in the parameter list below.

    That should fix your problem

    • Vorheriger offizieller Beitrag
    • Nächster offizieller Beitrag
  • blueracer66
    Anfänger
    Punkte
    45
    Beiträge
    8
    Wohnort
    California
    • 2. März 2014 um 12:53
    • #7

    Thank you! You're awesome! Do you think it's better to remove ID from categories? So instead of site.com/lexicon/22-games it should be site.com/lexicon/games? Is the ID slug necessary?

  • FragSalat
    Administrator
    Reaktionen
    213
    Punkte
    26.013
    Beiträge
    4.923
    Blog-Artikel
    13
    • 2. März 2014 um 13:20
    • Offizieller Beitrag
    • #8

    Nope sry this is just for Boards possible.

    • Vorheriger offizieller Beitrag
    • Nächster offizieller Beitrag
  • blueracer66
    Anfänger
    Punkte
    45
    Beiträge
    8
    Wohnort
    California
    • 2. März 2014 um 13:59
    • #9

    So it is only possible for the boards and not the lexicon?

    2 Mal editiert, zuletzt von blueracer66 (2. März 2014 um 15:17)

  • FragSalat
    Administrator
    Reaktionen
    213
    Punkte
    26.013
    Beiträge
    4.923
    Blog-Artikel
    13
    • 2. März 2014 um 14:28
    • Offizieller Beitrag
    • #10

    Correct.
    I did not implement a search for the titles for other plugins like the lexicon

    • Vorheriger offizieller Beitrag
  • blueracer66
    Anfänger
    Punkte
    45
    Beiträge
    8
    Wohnort
    California
    • 2. März 2014 um 15:20
    • #11

    Also, I tried creating a new route for the blog with information below but I am having the same issues as before:

    • Controller: lexicon\page\BlogPage
    • Schema: /{id}-{title}
    • Ignore Parameters: empty
    • Ticked id and title optional in the parameters.

    I am unable to create entries as site.com/blog/entry-add/ simply shows site.com/blog/.

    Any suggestions? Thank you!

    Edit:

    I am unable to add lexicon articles. Same issue as above. Links open at http://site.com/lexicon/entry/6-hello-world/ but only the lexicon index page shows up instead of the actual article...

    2 Mal editiert, zuletzt von blueracer66 (2. März 2014 um 23:44)

Tags

  • url
  • slugs
  • seo

Benutzer online in diesem Thema

  • 1 Besucher
  1. Datenschutzerklärung
  2. Impressum
Community-Software: WoltLab Suite™
  1. Navigation
  2. Forum
    1. Unerledigte Themen
  3. Artikel
  4. Mitglieder
    1. Letzte Aktivitäten
    2. Benutzer online
    3. Team
    4. Mitgliedersuche
  5. Blog
    1. Artikel
  6. Suche
  7. Optionen
    1. (placeholder)
  8. Aktueller Ort
  9. StageTwo - Deine Wohlfühloase
  10. Software
  11. WBB SEO Plugin
  1. Benutzer-Menü
  2. Anmeldung
  3. Registrierung
  4. Sprache
  5. Deutsch
    1. Deutsch
    2. English