Remove id from url in htaccess

48
March 15, 2019, at 10:00 PM

How do I remove the id from the url and pass it with GET?

Example:

http://sito.it/it/10-categoryname in to http://sito.it/it/categoryname

My .htaccess

RewriteEngine On
RewriteRule ^([^/]+)/([0-9]+)-([a-zA-Z0-9_-]+)$ category.php?lang=$1&id_categoria=$2 [NC,L]

Link in PHP

<?=$baseUrl.'/'.$lang.'/'.$dataCategoryRow['PRO_id_categoria'].'-'.$myNewString;?>

Thank you

READ ALSO
I&#39;m trying to creat and store a file locally in my pc using any web programing language

I'm trying to creat and store a file locally in my pc using any web programing language

I'm trying to save a txt file in my pc locally with php, but not in the download folderI need to add in different folder

26
Grabbing userID and field upon user creation

Grabbing userID and field upon user creation

I currently have a function that simply creates a user record in the database

13
Submitting 2 Forms with 1 Button or 1 Input

Submitting 2 Forms with 1 Button or 1 Input

currently i have 2 Buttons (well 1 Button and 1 Input with a Bootstrap button class) I use to upload a picture, and add a text to that picutre

10