ElkArte Community

General => Chit Chat => Topic started by: Jorin on December 18, 2014, 02:19:26 pm

Title: permanent redirect
Post by: Jorin on December 18, 2014, 02:19:26 pm
I want to get rid of my wordpress blogs. So I wrote the articles in my ElkArte and now I want to tell Google about it. So I started to edit my .htaccess file. Maybe anyone know if this is correct, 'cause the wordpress articles don't have a file extension such as a html file.

Code: [Select]
RedirectPermanent /558/fahrbericht-nissan-leaf-2013 http://forum.hybrid-piloten.de/index.php/topic,4391.0.html
RedirectPermanent /404/fahrbericht-tesla-model-s http://forum.hybrid-piloten.de/index.php/topic,4392.0.html

Plus: I have three domains. The wordpress blogs had their own, ElkArte has a subdomain. What I want to get to work is that all links leading to any blog article lead to threads in the forum.
Title: Re: permanent redirect
Post by: emanuele on December 18, 2014, 02:24:51 pm
/me is an htaccess dumb

Sorry, can't help here... :(
Title: Re: permanent redirect
Post by: Ant59 on December 18, 2014, 03:19:43 pm
I haven't used Apache in a while as I moved to Nginx, but if I remember correctly, it should be something like this:

Code: [Select]
Redirect 301 /558/fahrbericht-nissan-leaf-2013 http://forum.hybrid-piloten.de/index.php/topic,4391.0.html
Redirect 301 /404/fahrbericht-tesla-model-s http://forum.hybrid-piloten.de/index.php/topic,4392.0.html