Questions tagged [slug]

part of a URL that makes it more human readable or SEO-friendly, but without necessarily being required by the web server.

A slug is a part of a URL that makes it more human readable or SEO-friendly, but without necessarily being required by the web server. Slugs can be generated from a page title and are typically the last part of the url.

Example:

  • Page Title: c# - What's the difference between String and string? - Stack Overflow
  • Slug: whats-the-difference-between-string-and-string

The full URL including the slug is https://stackoverflow.com/questions/7074/whats-the-difference-between-string-and-string. Note that punctuation in the url is typically removed.

1272 questions
-1
votes
1 answer

Redirect seo-friendly URLs (htaccess)

I have a script that generates seo-friendly URLs like: mydomain.com/song_here-is-the-song-title_3bhbex.html or mydomain.com/song_this-is-one-more-song_4mb6mb.html So it is generate like this scheme: song_TITLE-OF-SONG_RANDOMID.html How can I get…
Tirenty2
  • 59
  • 7
-1
votes
1 answer

Wordpress Remove Slug From Url

How can I remove the slug from url. I could make this one; www.example.com/tour/boat www.example.com/boat I couldnt work this; www.example.com/en/tour/boat-to is www.example.com/en/boat-to is usually all methods not working on multi lang site.
-1
votes
1 answer

How do create a link from a database in Django?

If you have a blog model in Django that saves a slug, how do you create an href link from that slug field?
Bootstrap4
  • 3,671
  • 4
  • 13
  • 17
-1
votes
1 answer

How to use http.HandleFunc with slugs

I am working on a Go project. When I try to use slugs with http.HandleFunc I get a "404 page not found error". When I take the slug out my routing works again. In main I have: http.HandleFunc("/products/feedback/{slug}", AddFeedbackHandler) Which…
Emmett P
  • 205
  • 1
  • 3
  • 8
-1
votes
1 answer

Django url unique url open

I use django 1.10.5. I have a problem with open unique url, views: entry = get_object_or_404(Post, slug=slug) model field: slug = models.SlugField(editable=False) i need to detect slug with identical string, for example i have slug xyz and xYz i…
Random User
  • 73
  • 1
  • 9
-1
votes
2 answers

SYMFONY2 Sluggable minimal configuration

I installed StofDoctrineExtensionsBundle identical with that link. In contrast, page renders very slowly, because about 5 minutes. I you need only sluggable funcionality in the user entity (FOSUSERBUNDLE). I think it schould work faster without…
Darek MST
  • 117
  • 6
-1
votes
1 answer

Is it a good practice to use acronyms of words in slug urls for seo?

I have to write a slug url for an article where the title is United States of America. As a good practice for seo, should I leave as it is for the slug url (united-states-of-america) or USA to shorten?
Giacomo Sarrocco
  • 421
  • 1
  • 7
  • 16
-1
votes
1 answer

Symfony 2 Slug null

I've got a problem with doctrine bundle. Here's my code : config.yml stof_doctrine_extensions: orm: default: sluggable: true AppKernel new Stof\DoctrineExtensionsBundle\StofDoctrineExtensionsBundle(), Entity : /** * @var string * *…
Wako
  • 63
  • 1
  • 9
-1
votes
1 answer

woocommerce category URL vs wordpress page URL - taxonomy?

I am using woocommerce 2.4.1 on a self-hosted wordpress 4.3.1 install. I have WP static pages displaying WC subcategory products. I would like to have these pages be somehow inline with the WC category tree. For example: I have the following…
-1
votes
2 answers

using a 301 redirect to maintain SEO

I'm currently using freindly_id gem in a rails application to slug URLs and make them look nice. So rather than the URL #root/cities/1234 they are #root/cities/#cityname We are looking to change the cityname part of the URL to something else and it…
-1
votes
1 answer

Url Slug should be localized?

I am creating a multilingual website in which I am using URL Slug. According to SEO point of view should I use URL Slug in multiple languages?
Twix
  • 392
  • 1
  • 12
  • 38
-1
votes
1 answer

change url slug of encrypted cakephp script

I'm using a licensed cakephp script where appcontroller.php, bootstrap.php, and most of the core files are encrypted. How do I change the url slug http://mydomain.com/property/cool-activity to http://mydomain.com/activity/cool-activity without…
-1
votes
1 answer

generating slugfield from User

This is my models.py file class UserProfile(models.Model): user = models.ForeignKey(User, unique=True) toc = models.BooleanField(default=False) dob = models.DateField(blank=False, null=True) street_address =…
-1
votes
1 answer

Looking to finish my url encoding in php

I have a slug function that I am using from another tutorial. public function createSlug($slug) { // Remove anything but letters, numbers, spaces, hypens // Remove spaces and duplicate dypens // Trim the left and right,…
utooall
  • 89
  • 9
-1
votes
1 answer

.htaccess mulitple language (slug URL/friendly URL)

I am working on a multiple language site. For a URL .com/business-industry/?parent_id=3&value=cars it works perfectly. This will make the URL .com/business-industry/3/cars But the site also has .com/nl/ and .com/de/ I've added the next rules to…
1 2 3
84
85