• Welcome to PHPVIBE Forums. Please log in.

[ Video Sharing CMS v4 ] Problem In SEO

Started by LookStock,

Previous topic - Next topic

0 Members and 1 Guest 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 P.

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.
Happy with my help? Buy me a coffee.
Please, always use the search before opening a new topic! We're all here on our (limited) free time! Make sure you help yourself too!
  •  

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 P.

I've told you up what to do.
It's not htaccess.
Happy with my help? Buy me a coffee.
Please, always use the search before opening a new topic! We're all here on our (limited) free time! Make sure you help yourself too!
  •  

LookStockTopic starter

so , what i will do write this code only

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

Marius P.

That code it's already there. It's the code that removes every character except letters an numbers (also strips arabic characters).
Happy with my help? Buy me a coffee.
Please, always use the search before opening a new topic! We're all here on our (limited) free time! Make sure you help yourself too!
  •  

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 P.

You may want to do a simple

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



Instead of that, to replace space with -
Happy with my help? Buy me a coffee.
Please, always use the search before opening a new topic! We're all here on our (limited) free time! Make sure you help yourself too!
  •  

Similar topics (7)