1
sikey
Shoturls hack question
  • 2004/6/8 8:34

  • sikey

  • Not too shy to talk

  • Posts: 151

  • Since: 2003/4/29


I'm currently using the shorturls hack for "mydownloads" and everything is working ok, but for searchengine ranking i would like urls like thishttp://www.domain.com/mydownloads-singlefile-lid-15714.html
to behttp://www.domain.com/mydownloads-programname.html
Does anyone know how i can achieve this?

2
zoullou
Re: Shoturls hack question
  • 2004/6/8 8:54

  • zoullou

  • Quite a regular

  • Posts: 250

  • Since: 2004/3/2 0


Put your rewrite rule here

3
sikey
Re: Shoturls hack question
  • 2004/6/8 9:11

  • sikey

  • Not too shy to talk

  • Posts: 151

  • Since: 2003/4/29


Hope this is what you were asking :) thx

function convert_urls(&$s)
{
global $PHP_SELF;
$current_path = preg_replace("/(.*)\/.*.php.*/i", "\\1/\\2", $PHP_SELF);
$current_dir = preg_replace("/.*\/(.*)\/.*.php.*/i", "\\1", $PHP_SELF);
$base_dir = preg_replace("/\/(.*)\/?modules\/.*\.php/i", "\\1", $PHP_SELF);
$num_path = substr_count($PHP_SELF, "/");
$num_path_base = substr_count($base_dir, "/");

if ( ($num_path - $num_path_base) > 3) return $s;



$prefix = '|';
$in =
array(

4
sikey
Re: Shoturls hack question
  • 2004/6/8 19:58

  • sikey

  • Not too shy to talk

  • Posts: 151

  • Since: 2003/4/29


anyone?

Login

Who's Online

198 user(s) are online (111 user(s) are browsing Support Forums)


Members: 0


Guests: 198


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: May 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits