TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
  • Total Members: 3,973
  • Latest: NonStop
Stats
  • Total Posts: 196,231
  • Total Topics: 21,353
  • Online today: 606
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 584
  • Total: 584

double slash in URL

Started by freeman78, December 11, 2007, 07:31:48 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

freeman78

Hi @ll,

I´ve got a problem withe the TP-Article URL, only with the TP Article URL. I´ve checked the paths in the database and settings.php, everything seems 2b right.

See the problem here.

http://www.otworld.de//index.php?dummy=1;page=Knieorthese

All other URL s are fine, I use also SEO4SMF, maybe the problem is there; anybody an idea?

bloc

I would think so. It changes the url, so its probably that mod. I suspect something should be between the 2 slashes, something not interpreted correctly.

freeman78

#2
hmm...

the text in the .htaccess for tiny is:

My .htaccess
#Tiny Portal Old Url's
RewriteCond %{QUERY_STRING} ^page=([0-9]*)
RewriteRule  ^(.*)$ seo4smf-redirect.php?p=%1 [R=301,L]

#New Tinyportal Articles URL's
RewriteRule ^(.*)-p([0-9]*)\.html index.php?dummy=1&page=$2 [L]

but this is looking good... :'(

and the php from seo4smf
    if (!empty($tpage))
    {
        $request = db_query("SELECT subject FROM {$db_prefix}tp_articles where id=".$tpage." limit 1", __FILE__, __LINE__);
        $row = mysql_fetch_assoc($request);
        mysql_free_result($request);
         
        $scripturl1 = str_replace("/index.php", "", $scripturl);
         
        $page_name = remove_signs($row['subject']);
        $page_name = strtolower(str_replace(" ", $split_char, $page_name));
         
        $uri = $page_name."-p".$tpage.".html";
        $url = $scripturl1.'/'.$uri;
    }
     
}




freeman78

Can you please tell me, where these URLs are built?

UPDATE:
If I left the query title empty, I´ll be redirected to the index (as you can see here -> Click on the Test Article)

Zetan

Unless this a problem caused by TinyPortal, you will need to ask either at SMF, or the author of the SEO4SMF mod, which is smfhacks I think.

freeman78

I´ve done this, the author ist http://www.webmasterstalks.com/, but currently no response.
I think it would really help me; if anyone can tell me where the article url are built...

IchBin

TPortal.php / TPortal.template.php is the files you should look in I think.

freeman78

I thought as much. Can you tell it a little more concrete?

IchBin

Tell you what? You're asking where the links are created. I'm telling you the file. The links are built in numerous places depending on the layout you choose etc. You'll need to look through the TPortal.php file.

freeman78

#9
OK, maybe it´s my bad English

I´ve found 3 possibilities:
Line 273
<li' , $story['id'] == $alink['id'] ? ' class="chosen"' : '' , '><a href="' . $scripturl . '?page=' . $alink['id'] . '">' , $alink['subject'] , '</a></li>';


This website is proudly hosted on Crocweb Cloud Website Hosting.