Author Topic: How to redirect [url][/url]  (Read 707 times)

Offline Alfjan

  • Newbie
  • *
  • Posts: 9
How to redirect [url][/url]
« on: January 23, 2019, 01:53:26 AM »

I'm not sure, if this ist the correct place for my request. Sorry if I miss.

I like to modify all hxxp:... oder https://... [nonactive] 

Code: [Select]
https:// ->[b]https://...[/b]
http:// ->[b]http://...[/b]

How can I do this?

Offline br360

  • Support Specialist
  • SMF Hero
  • *
  • Posts: 2,394
    • GenXcommunity
Re: How to redirect [url][/url]
« Reply #1 on: January 23, 2019, 02:01:30 AM »
Did you get an SSL certificate yet? If so, this step by step tutorial should help-

Offline Alfjan

  • Newbie
  • *
  • Posts: 9
Re: How to redirect [url][/url]
« Reply #2 on: January 23, 2019, 02:18:48 AM »
I think I did not explain too clearly.

I want to automaticly change an outgoing http Adress to
Code: [Select][b]https://[/b] or[b]http://[/b] the part between ist the origial link postet on the board. I tried it with word zensoring to chang it but I got too many changes, because it replaces the same part http: oder htps: more than once.

After that I change the url tag in bbc setion in subs.php but I get hxxp: [nonactive]

Offline Alfjan

  • Newbie
  • *
  • Posts: 9
Re: How to redirect [url][/url]
« Reply #3 on: January 23, 2019, 02:28:09 AM »
This is the try via subs.php

Code: [Select]
'tag' => 'url',
'type' => 'unparsed_equals',
'before' => '<a href="$1" class="bbc_link" target="_blank">',
'after' => '</a>',
'validate' => create_function('&$tag, &$data, $disabled', '
if (strpos($data, \'\') !== 0 && strpos($data, \'\') !== 0)
$data = \'\' . $data;
'disallow_children' => array('email', 'ftp', 'url', 'iurl'),
'disabled_after' => ' ($1)',

Offline Alfjan

  • Newbie
  • *
  • Posts: 9
Re: How to redirect [url][/url]
« Reply #4 on: January 23, 2019, 03:18:25 AM »

I'm not sure, but your answer does not fix my problem.

First link is as it was postet on my forum. [nonactive]

I like to automaticly change that to this. [nonactive]

By the leadig h t t p s://

The advantages of anonymizing your external links with Webmasters can use this tool to prevent their site from appearing in the server logs of referred pages as referrer.
The operators of the referred pages cannot see where their visitors come from any more.Using the referrer removal service is quite easy: [nonactive] produces an anonymous link to which prevents the original site from appearing as a referrer in the logfiles of the referred page.

Online Aleksi "Lex" Kilpinen

  • A Peculiar Finn
  • Lead Support Specialist
  • SMF Super Hero
  • *
  • Posts: 18,451
  • Gender: Male
  • Don't worry, I'm n00b friendly
    • Aleksi.Kilpinen on Facebook
    • LexArma on GitHub
    • aleksi-kilpinen on LinkedIn
    • There's No Place Like
Re: How to redirect [url][/url]
« Reply #5 on: January 28, 2019, 04:57:19 AM »
Perhaps if you take a look at how this mod is done, you might get a few good pointers - It may even work as is ( though it is old, and originally made for 2.0 RC1 ) but can't promise it will.
A Finnish Support Specialist
 Happily running multiple SMF 2.0 installations.
  Fooling around with an i7 990X @ 3,47Ghz / 12Gb / Win 10 x64 / 3840x2160

How you can help SMF

"Before you allow people access to your forum, especially in an administrative position, you must be aware that that person can seriously damage your forum.
 Therefore, you should only allow people that you trust, implicitly, to have such access." -Douglas