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
2 answers

PHP Article Slug instead of ID

so I've saved an article slug to my database and usually I would filter my pages with the art_id like so, $sql_articles = "SELECT * FROM app_articles WHERE art_id=".$_GET['art_id']; $result_articles = query($sql_articles); and I pass would pass the…
user2201765
  • 1,017
  • 6
  • 18
  • 21
-1
votes
1 answer

How can I make a Wordpress page override an existing directory (not sub-directory)?

I have an existing directory called /final-fantasy-vii/ which has an /images/ folder inside of it. I created a page with the same slug of "final-fantasy-vii" and when I go to access that page online, it shows me the /images/ folder instead of the…
Omar
  • 21
  • 1
  • 5
-2
votes
1 answer

TYPO3 11.5 changed slug ends in wrong redirect

TYPO3 11.5.26. I have had two pages called "test" in the page tree: page type=folder id=34 slug=test page type=standard id=10 slug=test1 Then I did rename the slug for 1 into 'test-folder' and the slug for 2 into 'test'. page type=folder id=34…
Franz Holzinger
  • 913
  • 10
  • 20
-2
votes
2 answers

I'm unable to get the id from the JSON object in Next Js API

data.js inside API folder export default { Trending : [ { "data":[ { "id":1, "attributes":{ …
Preethi
  • 7
  • 1
-2
votes
1 answer

slug laravel override login

I have a route in web.php like this Route::get('/{slug_category}', 'WelcomeController@cdetail')->name('cdetail'); its success when I access category like /action, /horror, etc but this route was overridden my default /login laravel how can I fix the…
-2
votes
1 answer

Query not returning if there's a minus in the title

My query doesn't return everything if an min is in the title. Code: $stmt = $db->runQuery("SELECT all * FROM articles WHERE id = :id AND title LIKE CONCAT(:slug, '%')"); $stmt->bindParam(':id', $_GET['id'],…
Test
  • 47
  • 4
-2
votes
1 answer

How to reset unused Wordpress slug

I use "virtual pages" in Wordpress (you can google it) and i want to use some page slug that have been used before for a real page, for example: "domain.com/test". If i use "domain.com/test1" for example it will work great but if i use…
mondi
  • 529
  • 3
  • 16
-2
votes
2 answers

I want to make Blog Url of PHP seo friendly without using slug

I am developing a website in core php with custom cms. I am facing problem while making the blog url's seo friendly. My Url is of this type and I want the url like websitename/blog/title If I fix it through htaccess file, that will be static…
isha
  • 1
  • 4
-2
votes
1 answer

implementing slug in codeigniter

I have tried to do url_title(). but how to customize this function?
Sumit
  • 1
-2
votes
1 answer

Generate a friendly urls using UTF-8 encoding in javascript

I am trying to make friendly url from title. I find out many solutions but it has still problem with unicode character. eg: 'xin chào' in vietnamese I saw https://sluggenerator.com/ was OK. Could anyone helps me to do like this by…
M999
  • 25
  • 4
-3
votes
1 answer

Creating slugs from graphQL query in Gatsby

I am connecting to a database, and this query is showing me the IDs that I want: allSongs { edges { node { id } } } So now I want to be able to load a dynamic page like…
Icaval
  • 29
  • 7
-3
votes
2 answers

Find and remove apostrophe and one letter before?

The goal is to clean up a character string and delete elements not important for the user and SEO ie the (letter before the apostrophes) in my case. I would mainly like a solution or an explanation of a regex that would do that in PHP but the logic…
Benjamin Vbg
  • 89
  • 1
  • 12
1 2 3
84
85