Jump to content

Recommended Posts

Description of the problem

 

This is actual link of example news an my webpage:

http://www.sportskevesti.co/index.php?opcija=vest&vest_id=61212

 

i want to show ul link like this:

http://www.sportskevesti.co/vest/prosinečki-avanzuje-posle-odlaska-adžića

 

explanation of the wanted link

- /vest/ - option (i have 2 option: vest and kategorija).................. translate: vest is news and kategorija is category

- prosinečki-avanzuje-posle-odlaska-adžića - is title of news (Prosinečki avanzuje posle odlaska Adžića!)

 

Q1:for now i create in database fild "permalink", but, i do not know how to convert title of the news "Prosinečki avanzuje posle odlaska Adžića!" to new perma link "prosinečki-avanzuje-posle-odlaska-adžića"

 

Q2:whether it is wise to use serbian latin letter in permalink (čćžđš and џљњжђп....) ?

Link to comment
https://forums.phpfreaks.com/topic/252118-how-to-create-permalink-seo-friendly/
Share on other sites

I could be off the mark. But this sounds more like a .htaccess thing. Can't you just setup your .htaccess/mod rewrite to rewrite the url ?

 

 

 

 

a1) See strtolower & str_replace.

ok, thanks

 

a2) No.

Is posible to convert all or one by one? and how ?

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.