Menu Content

Podpora

> Diskusní fóra, FAQs & placená podpora
Welcome, Guest
Username Password: Remember me

Profile for DarkNight

  • OFFLINE
  • Time Zone: GMT +0:00
  • Local Time: 19:20
  • Posts: 2
  • Profile Views: 1299
  • Location: Unknown
  • Gender: Unknown
  • Birthdate: Unknown

Signature

Posts

Posts

emo
I programmed a workaround:

$query = "SELECT id, old, new"
. "\n FROM jos_sefmoved"
. "\n WHERE old = '".substr($_SERVER['REQUEST_URI'], 1)."'";
$database->setQuery( $query);
 
if($database->loadResult()){
$redirect = $database->loadObjectList();
$redirect = $redirect[0];
 
$query = "update `jos_sefmoved` set `lastHit` = NOW() where id = ".$redirect->id;
$database->setQuery( $query);
$database->query();
 
$new = "http://".$_SERVER['SERVER_NAME']."/".$redirect->new;
 
header("HTTP/1.1 301 Moved Permanently");
header("Location: ".$new);
exit();
}


This works with any file and parameters.
I placed it under:
// displays offline/maintanance page or bar
if ($mosConfig_offline == 1) {
require( $mosConfig_absolute_path .'/offline.php' );
}


Works fine I think.
Redirecting non-sef ...
Category: JoomSEF 3
emo
Hello

I'm using the latest version of JomSef on my website Proxy.
Now I'm trying to redirect an old URL:

index.php?option=com_wrapper&ltemid=8

should redirect to

/Proxy/Proxyliste.html

But this don`t works. It always creates an new SEO Url.
Is there any way to do it with JoomSEF?

Thanks
Redirecting non-sef ...
Category: JoomSEF 3
More
Přihlášení uživatele Prázdný