Author Topic: URLs not followed  (Read 5083 times)

0 Members and 1 Guest are viewing this topic.

Offline Lucifix

  • Hero Member
  • *****
  • Posts: 710
    • View Profile
    • http://www.slo-foto.net
URLs not followed
« on: April 17, 2008, 03:13:23 PM »
I don't know what I did wrong, but if you visit page that is deleted or ID doesn't exist any more it won't redirect you to index page.

Example:
http://www.slo-foto.net/galerija_slika-10159.html

Does anyone know where can I find code that redirects you to home page?

Offline mawenzi

  • Moderator
  • 4images Guru
  • *****
  • Posts: 4.500
    • View Profile
Re: URLs not followed
« Reply #1 on: April 17, 2008, 03:43:59 PM »
... I think the problem is your SEO-MOD with short urls ...
Your first three "must do" before you ask a question ! ( © by V@no )
- please read the Forum Rules ...
- please study the FAQ ...
- please try to Search for your answer ...

You are on search for top 4images MOD's ?
- then please search here ... Mawenzi's Top 100+ MOD List (unsorted sorted) ...

Offline Lucifix

  • Hero Member
  • *****
  • Posts: 710
    • View Profile
    • http://www.slo-foto.net
Re: URLs not followed
« Reply #2 on: April 17, 2008, 03:48:06 PM »

Offline mawenzi

  • Moderator
  • 4images Guru
  • *****
  • Posts: 4.500
    • View Profile
Re: URLs not followed
« Reply #3 on: April 17, 2008, 04:00:49 PM »
1. it is not a directly 4images link ...
2. this link redirects me to the index.php ...
Your first three "must do" before you ask a question ! ( © by V@no )
- please read the Forum Rules ...
- please study the FAQ ...
- please try to Search for your answer ...

You are on search for top 4images MOD's ?
- then please search here ... Mawenzi's Top 100+ MOD List (unsorted sorted) ...

Offline Lucifix

  • Hero Member
  • *****
  • Posts: 710
    • View Profile
    • http://www.slo-foto.net
Re: URLs not followed
« Reply #4 on: April 17, 2008, 06:31:06 PM »
Looks like I almost successfully redirect invalid link to main page. Do you know how can I redirect visitors to gallery? Maybe just hint where is code that do redirection.

Offline Lucifix

  • Hero Member
  • *****
  • Posts: 710
    • View Profile
    • http://www.slo-foto.net
Re: URLs not followed
« Reply #5 on: April 17, 2008, 07:35:09 PM »
Got it:

Code: [Select]
if (!$image_id) {
  header("Location: ".$site_sess->url($url, "&"));
  exit;
}

With some luck I successfully modify this code.

Thx!