Old eksternal links to topics in the forum - Postet den (554 Views)
Forum Administrator
Torborg
Innlegg: 1797
1797
There is one big external site (artsobservasjoner.no) where different posts in our old forum are referred to many times. People are concerned that these links will no longer work. The links are important information.

1) The people running this external site can maybe update the links in their database.
2) But maybe better if we could redirect the call from the hyperlink to the right place in our new database? Could that be done with .htaccass file? And put the file at the old forums address (bio.no/enbiolog/ )? I already have a .htaccass there. It redirects calls to the new domain. With the new forum the urls are to a topic is different . Can a htaccess do yhe translation from old to new url for me?
 Sortering, for datoer betyr DESC nyeste først  
 Sidestørrelse 
Postet den
Forum Administrator
HuwR
Innlegg: 4750
4750
will update code here shortly, if I haven't broken anything major I will update yours later tonight
Postet den
Forum Administrator
Torborg
Innlegg: 1797
1797
I got it! thumbsUp
Postet den
Forum Administrator
HuwR
Innlegg: 4750
4750
if the url wa this for example https://www.sporenbiolog.no/forum/topic.asp?TOPIC_ID=68005 then it would find the topic ok. I will remove the requirement for /forum/
Postet den
Forum Administrator
Torborg
Innlegg: 1797
1797
HM I didn't understand, but trust you smile
Postet den
Forum Administrator
HuwR
Innlegg: 4750
4750
Ah! code seems to be snitz specific as it looks for /forum/ in the url will need to tweak it.
Postet den
Forum Administrator
Torborg
Innlegg: 1797
1797
thumbsUp
Postet den
Forum Administrator
HuwR
Innlegg: 4750
4750
I'll check to see if I can figure out why it isn't working, must be something it doesn't like
Postet den
Forum Administrator
Torborg
Innlegg: 1797
1797
I asked the host at bio.no to redirect from bio.no/enbiolog to www.sporenbiolog.no

It redirects to the new domain, but the old adress structure is kept :
http://www.bio.no/enbiolog/topic.asp?TOPIC_ID=68005
Postet den
Forum Administrator
HuwR
Innlegg: 4750
4750
Originally posted by Torborg
Thanks! I worried about this without reason thumbsUp
No prob, probably not a documented feature, but I added it when I changed the main Snitz forum to point at this version.
Postet den
Forum Administrator
Torborg
Innlegg: 1797
1797
Opprinnelig postet av HuwR
so aslong as the htaccess preserves the topic.asp?TOPIC_ID=71269 then it should get redirected automatically

We have changed domain name. So we need a redirecting htaccess from the old domain and folder to the new domain. thumbsUp