Forum > General
Someone knows apache2 rewrite_mod to help with old domain links ?
(1/2) > >>
Barbz:
I don't think this issue is taken seriously, but I feel like it's very important to revive the old links from modcraft.superparanoid.de
We all have bookmarks that are now completely dead, there are tons of links on ac-web and several sites that link to the old modcraft which are now completely useless. In top of that, all the links from search engines are lost and it's very very very annoying and bad for the forum.
Here is my partial solution for apache2, if someone can help to make the rewrite rules or correct me if i'm wrong, then do not hesitate :
1) The domain "modcraft.superparanoid.de" needs a new A record in its DNS settings and has to point to your server IP address.
2)a) Then you have to create a second virtualhost file in apache2 similar to the "modcraft.io" one but with the name "modcraft.superparanoid.de"
b) You need to enable mod_rewrite module by typing this "a2en mod_rewrite"
c) In this virtualhost file, you need to create rewrite rules and here are the things I noticed :
http://modcraft.superparanoid.de/viewforum.php?f=103 ---> http://www.modcraft.io/index.php?board=103.0
http://modcraft.superparanoid.de/viewtopic.php?t=9821=51800 ---> http://www.modcraft.io/index.php?topic=9821.msg51800
Do you see a pattern ?
viewforum.php?f=103 ==========> index.php?board=103.0 viewforum.php?f= ==========> index.php?board= 103 ======> 103.0
viewtopic.php?t=9821=51800 =============> index.php?topic=9821.msg51800 viewtopic.php?t= =================> index.php?topic= 9821=51800 ==================> 9821.msg51800 view ====> index.php
--------- I hope it will be done at some point, I think it's a priority and maybe I am the only one. But if you wait too long, you will lose all the SEO and direct links from google.
schlumpf:
No worries about that SEO, we never did any :) Other than that, we don't have DNS access afaik. The current redirect is a PHP with header 302, but I guess that's enough.
Steff:
mod rewrite seams to be disabled there. So rules will not work.
schlumpf:
I hacked together two rules, which should work-ish for the links given above. Everything else is still todo. Steff, please continue on that.
Barbz:
WOW Schlumpf ! It works for most links !! I just tried 10 bookmarks and they all work !!
Thanks a lot, I'm going to check other links if I find one not working !
Navigation
[0] Message Index
[#] Next page
|