• Welcome to WooUSEFUL by PHPVIBE . Please log in.

[ Video Sharing CMS v4 ] Problem In SEO

Started by LookStock,

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

LookStockTopic starter

Hello,

I have problem in link write in arabic lang.

like this
http://tube.pooze.me/video/140/-/
it's write - instead of the title name of the video

but if the title in english it's work great like this link
http://tube.pooze.me/video/86/2012-mclaren-mp4-12c-start-up-exhaust-test-drive-and-in-depth-review/


Also i have another video script and it's work in arabic and english without problem.
  •  

Marius

I don't know arabic, but there is a translation table inside lib/functions.php

function url_translate($string)



but I'm not sure if this is a pain to use for your characters.
You could just alter


// remove all chars
$url = preg_replace("/[^a-z0-9]+/","-",strtolower($url));



To a more arabic friendly regex, or remove it.
If this helped, consider buying me a coffee.
20 years coding, tweaking, building in PHP. Still creating!
  •  

LookStockTopic starter

I think it can be done from .htaccess
you don't have any idea about how can i fix this problem exactly?
  •  

Marius

I've told you up what to do.
It's not htaccess.
If this helped, consider buying me a coffee.
20 years coding, tweaking, building in PHP. Still creating!
  •  

LookStockTopic starter

so , what i will do write this code only

// remove all chars
$url = preg_replace("/[^a-z0-9]+/","-",strtolower($url));
  •  

Marius

That code it's already there. It's the code that removes every character except letters an numbers (also strips arabic characters).
If this helped, consider buying me a coffee.
20 years coding, tweaking, building in PHP. Still creating!
  •  

LookStockTopic starter

Great,

I removed this code

// remove all chars
$url = preg_replace("/[^a-z0-9]+/","-",strtolower($url));


and it's work 100%

thank you very much :)
  •  

Marius

You may want to do a simple

$url = str_replace(" ","-",strtolower($url));



Instead of that, to replace space with -
If this helped, consider buying me a coffee.
20 years coding, tweaking, building in PHP. Still creating!
  •  

Similar topics (7)